Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-03-12 11:33:35 +04:00
parent e37fd1d671
commit c23dea51fb
2 changed files with 6 additions and 6 deletions

View File

@ -308,10 +308,10 @@ var KEYBOARD_CONFIG = {
showInOverlay('<h1>Controls</h1>'+
'<p>NOTE: this section is a stub.<p>'+
'<table width="100%">'+
'<tr><td align="right" width="45%"> C-O </td><td> Load issue from file. </td></tr>'+
'<tr><td align="right"> C-S </td><td> Save issue to file. </td></tr>'+
'<tr><td align="right"> - / + </td><td> Zoom out/in. </td></tr>'+
'<tr><td align="right"> 0 </td><td> Set default zoom level. </td></tr>'+
'<tr><td align="right" width="45%"><b> C-O </b></td><td> Load issue from file. </td></tr>'+
'<tr><td align="right"><b> C-S </b></td><td> Save issue to file. </td></tr>'+
'<tr><td align="right"><b> - / + </b></td><td> Zoom out/in. </td></tr>'+
'<tr><td align="right"><b> 0 </b></td><td> Set default zoom level. </td></tr>'+
'</table>')
},
},

View File

@ -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]