Add keycode for Mac command key (on Chrome)

This commit is contained in:
Andrew Tomaka 2013-08-26 16:49:58 -04:00
parent 3ec495ce90
commit 3296aa1765

View file

@ -76,7 +76,7 @@
$(document).keydown(function(e) {
var keycode = e.keycode || e.which;
if(keycode == 17) {
if(keycode == 17 || keycode == 91) {
lastFocus = currentFocus;
$('#password').focus().select();
}
@ -84,7 +84,7 @@
$(document).keyup(function(e) {
var keycode = e.keycode || e.which;
if(keycode == 17) {
if(keycode == 17 || keycode == 91) {
lastFocus.focus();
}
});