From d955933454c69a205723cadac3d27310c1006f9a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 24 Oct 2014 04:51:35 +0400 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/ui.js | 6 +++++- ui (gen4)/viewer.js | 6 ++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/ui.js b/ui (gen4)/ui.js index f710e500..b6c29179 100755 --- a/ui (gen4)/ui.js +++ b/ui (gen4)/ui.js @@ -73,10 +73,14 @@ module.GLOBAL_KEYBOARD = { // NOTE: these are for systems where F** keys are not available // or do other stuff... R: { - default: 'reverseImages!', + default: 'rotateCW', + shift: 'reverseImages', ctrl: 'reload!', 'ctrl+shift': 'F5', }, + L: 'rotateCCW', + H: 'flipHorizontal', + V: 'flipVertical', P: { 'ctrl+shift': 'F12', }, diff --git a/ui (gen4)/viewer.js b/ui (gen4)/viewer.js index 491a5265..498c6945 100755 --- a/ui (gen4)/viewer.js +++ b/ui (gen4)/viewer.js @@ -150,8 +150,6 @@ actions.Actions({ function(img, list){ this.data.focusImage(img, list) }], - - focusRibbon: ['Focus Ribbon', function(target){ var data = this.data @@ -177,11 +175,12 @@ actions.Actions({ setBaseRibbon: ['Set base ribbon', function(target){ this.data.setBase(target) }], + // shorthands... + // XXX do we reset direction on these??? firstImage: ['Focus first image in current ribbon', function(all){ this.focusImage(all == null ? 'first' : 0) }], lastImage: ['Focus last image in current ribbon', function(all){ this.focusImage(all == null ? 'last' : -1) }], - firstGlobalImage: ['Get first globally image', function(){ this.firstImage(true) }], lastGlobalImage: ['Get last globally image', @@ -228,7 +227,6 @@ actions.Actions({ function(){ this.focusRibbon('first') }], lastRibbon: ['Focus next ribbon', function(){ this.focusRibbon('last') }], - prevRibbon: ['Focus previous ribbon', function(){ this.focusRibbon('before') }], nextRibbon: ['Focus next ribbon',