mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 03:00:09 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e37fd1d671
commit
c23dea51fb
@ -308,10 +308,10 @@ var KEYBOARD_CONFIG = {
|
|||||||
showInOverlay('<h1>Controls</h1>'+
|
showInOverlay('<h1>Controls</h1>'+
|
||||||
'<p>NOTE: this section is a stub.<p>'+
|
'<p>NOTE: this section is a stub.<p>'+
|
||||||
'<table width="100%">'+
|
'<table width="100%">'+
|
||||||
'<tr><td align="right" width="45%"> C-O </td><td> Load issue from file. </td></tr>'+
|
'<tr><td align="right" width="45%"><b> C-O </b></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"><b> C-S </b></td><td> Save issue to file. </td></tr>'+
|
||||||
'<tr><td align="right"> - / + </td><td> Zoom out/in. </td></tr>'+
|
'<tr><td align="right"><b> - / + </b></td><td> Zoom out/in. </td></tr>'+
|
||||||
'<tr><td align="right"> 0 </td><td> Set default zoom level. </td></tr>'+
|
'<tr><td align="right"><b> 0 </b></td><td> Set default zoom level. </td></tr>'+
|
||||||
'</table>')
|
'</table>')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -159,7 +159,7 @@ function makeKeyboardHandler(keybindings, unhandled){
|
|||||||
|
|
||||||
var key = evt.keyCode
|
var key = evt.keyCode
|
||||||
var chr = toKeyName(evt.keyCode)
|
var chr = toKeyName(evt.keyCode)
|
||||||
// XXX ugly...
|
// normalize the modifiers...
|
||||||
var modifers = evt.ctrlKey ? 'ctrl' : ''
|
var modifers = evt.ctrlKey ? 'ctrl' : ''
|
||||||
modifers += evt.altKey ? (modifers != '' ? '+alt' : 'alt') : ''
|
modifers += evt.altKey ? (modifers != '' ? '+alt' : 'alt') : ''
|
||||||
modifers += evt.shiftKey ? (modifers != '' ? '+shift' : 'shift') : ''
|
modifers += evt.shiftKey ? (modifers != '' ? '+shift' : 'shift') : ''
|
||||||
@ -194,7 +194,7 @@ function makeKeyboardHandler(keybindings, unhandled){
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// Array, lisp style with docs...
|
// 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'){
|
if(typeof(handler) == typeof([]) && handler.constructor.name == 'Array'){
|
||||||
// we do not care about docs here, so just get the handler...
|
// we do not care about docs here, so just get the handler...
|
||||||
handler = handler[0]
|
handler = handler[0]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user