From faef26fd79dc350c0ce8f6491ad185bfdd35b2de Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 3 May 2013 05:47:26 +0400 Subject: [PATCH] some cleanup and tweeking... Signed-off-by: Alex A. Naanou --- ui/ImageGrid.js | 4 +++- ui/keybindings3.js | 24 ------------------------ 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/ui/ImageGrid.js b/ui/ImageGrid.js index 5ca14efe..49b98c61 100755 --- a/ui/ImageGrid.js +++ b/ui/ImageGrid.js @@ -356,7 +356,9 @@ function centerRibbon(ribbon, mode){ // a shorthand... function centerRibbons(mode){ - return $('.ribbon').each(function(){ centerRibbon($(this), mode) }) + return $('.ribbon') + .filter(':visible') + .each(function(){ centerRibbon($(this), mode) }) } diff --git a/ui/keybindings3.js b/ui/keybindings3.js index 80800413..d427cf34 100755 --- a/ui/keybindings3.js +++ b/ui/keybindings3.js @@ -34,22 +34,10 @@ var KEYBOARD_CONFIG = { prevImage() centerRibbons() }, - // XXX prevScreenImages... ctrl: function(){ prevScreenImages() centerRibbons() }, - // XXX need to keep shift explicitly clear for editor... - /* - shift: function(){ - toggleImageMark() - prevImage() - }, - // XXX mark screen images... - 'ctrl+shift': function(){ - console.log('NotImplemented: mark screen images back.') - } - */ }, Right: { default: function(){ @@ -65,22 +53,10 @@ var KEYBOARD_CONFIG = { nextImage() centerRibbons() }, - // XXX nextScreenImages... ctrl: function(){ nextScreenImages() centerRibbons() }, - // XXX need to keep shift explicitly clear for editor... - /* - shift: function(){ - toggleImageMark() - nextImage() - }, - // XXX mark screen images... - 'ctrl+shift': function(){ - console.log('NotImplemented: mark screen images forward.') - } - */ }, Space: { default: 'Right',