Permalink
Browse files

kbd.js: fixed 'z'ap key behavior as expected.

  • Loading branch information...
wkpark committed Jan 14, 2016
1 parent 6809b1e commit 1fc0995e2ccfc010c96544d61661b0343e8e44dd
Showing with 9 additions and 5 deletions.
  1. +9 −5 css/kbd.js
View
@@ -102,15 +102,19 @@ function keydownhandler(e) {
noBubble(e);
return false;
}
if (e.altKey && e.keyCode == 90) { // Z
if (nn != 'INPUT') {
if (e.keyCode == 90) { // Z
if (nn != 'INPUT' && nn != 'TEXTAREA') {
go ? goValue.focus():null;
noBubble(e);
} else {
return true;
} else if (e.altKey || nn == 'INPUT') {
var bot=document.getElementById('bottom');
if (bot) bot.focus(), noBubble(e);
if (bot) {
bot.focus(), noBubble(e);
return true;
}
}
return;
return false;
}
}

0 comments on commit 1fc0995

Please sign in to comment.