From 7ebd4a17bde65025bfb190d09b1e2f3ed509e350 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 25 Aug 2011 18:53:30 -0700 Subject: [PATCH] Adds other keycodes for command keys in different browsers. - 224 for firefox - 93 for the right command key in WebKit browsers. --- src/ui/Key.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/Key.js b/src/ui/Key.js index 76f9a203..c8fadd4c 100644 --- a/src/ui/Key.js +++ b/src/ui/Key.js @@ -40,7 +40,9 @@ var Key = this.Key = new function() { 39: 'right', 40: 'down', 46: 'delete', - 91: 'command' + 91: 'command', + 93: 'command', // WebKit right command button + 224: 'command' // Gecko command button }, // Use Base.merge to convert into a Base object, for #toString()