-
Notifications
You must be signed in to change notification settings - Fork 53
Roman branch #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Roman branch #13
Conversation
| @@ -1,0 +1,222 @@ | |||
| let Tasks = { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
divide & wrap functions into smaller functions
| } | ||
|
|
||
| let mouseHover; | ||
| let onAlt = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use global variables. They only cause trouble. Find a different way to do this.
solution/index.js
Outdated
| let onAlt = false; | ||
| // making on keydown and key up global | ||
| document.onkeydown = (e) => { | ||
| if (e.key === 'Alt') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a better way to check if alt is pressed. Read about keyboard events
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
No description provided.