Skip to content
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

Fix commands execution #4

Merged
merged 4 commits into from Apr 5, 2019

Conversation

Projects
None yet
3 participants
@khaydarov
Copy link
Member

commented Apr 1, 2019

No description provided.

khaydarov added some commits Apr 1, 2019

fix
for (let key = 0; key < shortcut.length; key++) {
shortcut[key] = shortcut[key].toUpperCase();

let isCommand = false;

This comment has been minimized.

Copy link
@DorofeevMark

DorofeevMark Apr 1, 2019

Может проще так?

if (Object.keys(keyCodes).indexOf(shortcut[key]) === -1) {

@neSpecc

neSpecc approved these changes Apr 1, 2019

@khaydarov khaydarov merged commit 40e4a91 into master Apr 5, 2019

@khaydarov khaydarov deleted the fix-commands-execution branch Apr 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.