Skip to content

Commit

Permalink
Fix incorrect keys behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
shikoba-hn committed Jun 6, 2022
1 parent 73f961a commit 4e22916
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions html-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,11 @@ class HtmlUI {
];
if (ev.keyCode in this.keys) {
let move = this.keys[ev.keyCode];
let k = 1;
if (ev.shiftKey) {
move[2] = -move[2];
k = -1;
}
funs[move[0]](move[1], move[2]);
funs[move[0]](move[1], k * move[2]);
} else {
// alert(ev.keyCode);
return;
Expand Down

0 comments on commit 4e22916

Please sign in to comment.