Skip to content

Commit

Permalink
Remove use of deprecated keyCode
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Ndung'u <kevgathuku@gmail.com>
  • Loading branch information
kevgathuku committed Jul 23, 2018
1 parent 35cf537 commit 7df461d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ var OCP = {},
event.preventDefault();

// allow enter key as a trigger
if (event.keyCode && event.keyCode !== 13) {
if (event.key && event.key !== "Enter") {
return;
}

Expand Down Expand Up @@ -1431,7 +1431,7 @@ function initCore() {
$(document).on('mouseup.closemenus', function(event) {

// allow enter as a trigger
// if (event.keyCode && event.keyCode !== 13) {
// if (event.key && event.key !== "Enter") {
// return;
// }

Expand Down

0 comments on commit 7df461d

Please sign in to comment.