diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 53c16f10..caa05528 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -13,10 +13,10 @@ var BACKGROUND_MODES = [ // remember the default backgrounds for modes... // ...this effectively makes the modes independant... -// NOTE: null represent the default value... +// NOTE: null represent the default value (no class set)... // NOTE: these will change if changed in runtime... var NORMAL_MODE_BG = 'dark' -var SINGLE_IMAGE_MODE_BG = BACKGROUND_MODES[BACKGROUND_MODES.length-1] +var SINGLE_IMAGE_MODE_BG = 'black' // ribbon/single view modes... @@ -638,7 +638,8 @@ var toggleSingleImageMode = createCSSClassToggler('.viewer', 'single-image-mode' if(action == 'on'){ NORMAL_MODE_BG = getBackgroundMode() ORIGINAL_FIELD_SCALE = getElementScale($('.field')) - } else { + } else if(toggleSingleImageMode('?') == 'on'){ + // save only when coming out of single image mode... SINGLE_IMAGE_MODE_BG = getBackgroundMode() } }, diff --git a/ui/keybindings.js b/ui/keybindings.js index f7023de5..4cd53ffa 100755 --- a/ui/keybindings.js +++ b/ui/keybindings.js @@ -1,6 +1,7 @@ /*********************************************************************/ +// NOTE: use String.fromCharCode(code)... var keybindings = { - //72: toggleHelp, // ??? + //191: toggleHelp, // ? 70: toggleSingleImageMode, // f 13: 70, // Enter 84: toggleSingleImageModeTransitions, // t @@ -72,6 +73,7 @@ var keybindings = { 16: function(){}, 17: 16, 18: 16, + 20: 16, // Caps Lock } /* XXX old bindings...