From 3296aa17659717a37e3c5574a56de3588511fef1 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 26 Aug 2013 16:49:58 -0400 Subject: [PATCH] Add keycode for Mac command key (on Chrome) --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b56d7bf..17b6b8c 100755 --- a/index.html +++ b/index.html @@ -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(); } });