From c23dea51fbdd4b3d1c1063494e9ab1c1a2b31030 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 12 Mar 2013 11:33:35 +0400 Subject: [PATCH] ... Signed-off-by: Alex A. Naanou --- index.html | 8 ++++---- lib/keyboard.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index c7505c2..0e9ddf8 100755 --- a/index.html +++ b/index.html @@ -308,10 +308,10 @@ var KEYBOARD_CONFIG = { showInOverlay('

Controls

'+ '

NOTE: this section is a stub.

'+ ''+ - ''+ - ''+ - ''+ - ''+ + ''+ + ''+ + ''+ + ''+ '
C-O Load issue from file.
C-S Save issue to file.
- / + Zoom out/in.
0 Set default zoom level.
C-O Load issue from file.
C-S Save issue to file.
- / + Zoom out/in.
0 Set default zoom level.
') }, }, diff --git a/lib/keyboard.js b/lib/keyboard.js index cdf48fa..13cede6 100755 --- a/lib/keyboard.js +++ b/lib/keyboard.js @@ -159,7 +159,7 @@ function makeKeyboardHandler(keybindings, unhandled){ var key = evt.keyCode var chr = toKeyName(evt.keyCode) - // XXX ugly... + // normalize the modifiers... var modifers = evt.ctrlKey ? 'ctrl' : '' modifers += evt.altKey ? (modifers != '' ? '+alt' : 'alt') : '' modifers += evt.shiftKey ? (modifers != '' ? '+shift' : 'shift') : '' @@ -194,7 +194,7 @@ function makeKeyboardHandler(keybindings, unhandled){ continue } // Array, lisp style with docs... - // XXX for some odd reason in chrome typeof([]) == typeof({})!!! + // XXX for some odd reason typeof([]) == typeof({})!!! if(typeof(handler) == typeof([]) && handler.constructor.name == 'Array'){ // we do not care about docs here, so just get the handler... handler = handler[0]