diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 7648d269..8b732629 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -206,6 +206,7 @@ function showSetup(){ var DEBUG = true //var DEBUG = false + ImageGrid.OPTION({ name: 'BACKGROUND_MODES', doc: 'list of available background styles.\n'+ @@ -884,13 +885,14 @@ function makeKeyboardHandler(keybindings, unhandled){ callback = handler['default'] } if(callback != null){ - callback() - return false + var res = callback() + return res?true:false + } } else { // simple callback... - handler() - return false + var res = handler() + return res?true:false } return unhandled(key) } diff --git a/ui/keybindings.js b/ui/keybindings.js index bd253144..180adaa1 100755 --- a/ui/keybindings.js +++ b/ui/keybindings.js @@ -78,6 +78,9 @@ var keybindings = { 17: 16, 18: 16, 20: 16, // Caps Lock + + // refresh... + 116: function(){ return DEBUG?true:false } // F5 }