aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vomnibar.js
diff options
context:
space:
mode:
authorPhil Crosby2012-06-11 17:19:58 -0700
committerPhil Crosby2012-06-12 22:00:35 -0700
commit50a4fd9ab8c95c653370ed01ab35cde62d6bf058 (patch)
tree6e20e41c18703c0df3c654728d7b46597a90ca72 /content_scripts/vomnibar.js
parentf27180aefbc90c3bb3847faf68e58b440768e713 (diff)
downloadvimium-50a4fd9ab8c95c653370ed01ab35cde62d6bf058.tar.bz2
Port keyboard_utils.js to coffeescript
Diffstat (limited to 'content_scripts/vomnibar.js')
-rw-r--r--content_scripts/vomnibar.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/vomnibar.js b/content_scripts/vomnibar.js
index e9d345f4..b2fc14c4 100644
--- a/content_scripts/vomnibar.js
+++ b/content_scripts/vomnibar.js
@@ -74,8 +74,8 @@ var vomnibar = (function() {
* We support the arrow keys and other shortcuts for moving, so this method hides that complexity.
*/
actionFromKeyEvent: function(event) {
- var key = getKeyChar(event);
- if (isEscape(event))
+ var key = KeyboardUtils.getKeyChar(event);
+ if (KeyboardUtils.isEscape(event))
return "dismiss";
else if (key == "up" ||
(event.shiftKey && event.keyCode == keyCodes.tab) ||
@@ -93,7 +93,7 @@ var vomnibar = (function() {
var action = this.actionFromKeyEvent(event);
if (!action) return true; // pass through
- var openInNewTab = (event.shiftKey || isPrimaryModifierKey(event));
+ var openInNewTab = (event.shiftKey || KeyboardUtils.isPrimaryModifierKey(event));
if (action == "dismiss") {
this.hide();
}