diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index b98dc952..a14b2787 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -25,6 +25,7 @@ module.GLOBAL_KEYBOARD = { 'Slideshow': { pattern: '.slideshow-running', ignore: [ + 'Esc', 'Up', 'Down', 'Enter', 'R', 'L', ], @@ -41,6 +42,21 @@ module.GLOBAL_KEYBOARD = { L: 'toggleSlideshowLooping', }, + 'Single Image': { + pattern: '.single-image-mode', + ignore: [ + 'Esc', + + // do not crop in single image mode... + 'C', 'F2', + + // XXX not sure about this... + //'Up', 'Down', + ], + + Esc: 'toggleSingleImage: "off"', + }, + 'Global': { doc: 'NOTE: binding priority is the same as the order of sections '+ 'on this page.', @@ -243,8 +259,10 @@ module.GLOBAL_KEYBOARD = { } + /*********************************************************************/ +// XXX add introspection and doc actions... var KeyboardActions = actions.Actions({ config: { // limit key repeat to one per N milliseconds. diff --git a/ui (gen4)/features/ui-single-image.js b/ui (gen4)/features/ui-single-image.js index 82785cfd..98fe488b 100755 --- a/ui (gen4)/features/ui-single-image.js +++ b/ui (gen4)/features/ui-single-image.js @@ -85,6 +85,8 @@ var core = require('features/core') // // // XXX should this be an action??? +// XXX problems: +// Q: what do we use for scale?? function updateImageProportions(){ var viewer = this.ribbons.viewer var image = viewer.find('.image')