minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-10-24 04:51:35 +04:00
parent 739ca6eb55
commit d955933454
2 changed files with 7 additions and 5 deletions

View File

@ -73,10 +73,14 @@ module.GLOBAL_KEYBOARD = {
// NOTE: these are for systems where F** keys are not available // NOTE: these are for systems where F** keys are not available
// or do other stuff... // or do other stuff...
R: { R: {
default: 'reverseImages!', default: 'rotateCW',
shift: 'reverseImages',
ctrl: 'reload!', ctrl: 'reload!',
'ctrl+shift': 'F5', 'ctrl+shift': 'F5',
}, },
L: 'rotateCCW',
H: 'flipHorizontal',
V: 'flipVertical',
P: { P: {
'ctrl+shift': 'F12', 'ctrl+shift': 'F12',
}, },

View File

@ -150,8 +150,6 @@ actions.Actions({
function(img, list){ function(img, list){
this.data.focusImage(img, list) this.data.focusImage(img, list)
}], }],
focusRibbon: ['Focus Ribbon', focusRibbon: ['Focus Ribbon',
function(target){ function(target){
var data = this.data var data = this.data
@ -177,11 +175,12 @@ actions.Actions({
setBaseRibbon: ['Set base ribbon', setBaseRibbon: ['Set base ribbon',
function(target){ this.data.setBase(target) }], function(target){ this.data.setBase(target) }],
// shorthands...
// XXX do we reset direction on these???
firstImage: ['Focus first image in current ribbon', firstImage: ['Focus first image in current ribbon',
function(all){ this.focusImage(all == null ? 'first' : 0) }], function(all){ this.focusImage(all == null ? 'first' : 0) }],
lastImage: ['Focus last image in current ribbon', lastImage: ['Focus last image in current ribbon',
function(all){ this.focusImage(all == null ? 'last' : -1) }], function(all){ this.focusImage(all == null ? 'last' : -1) }],
firstGlobalImage: ['Get first globally image', firstGlobalImage: ['Get first globally image',
function(){ this.firstImage(true) }], function(){ this.firstImage(true) }],
lastGlobalImage: ['Get last globally image', lastGlobalImage: ['Get last globally image',
@ -228,7 +227,6 @@ actions.Actions({
function(){ this.focusRibbon('first') }], function(){ this.focusRibbon('first') }],
lastRibbon: ['Focus next ribbon', lastRibbon: ['Focus next ribbon',
function(){ this.focusRibbon('last') }], function(){ this.focusRibbon('last') }],
prevRibbon: ['Focus previous ribbon', prevRibbon: ['Focus previous ribbon',
function(){ this.focusRibbon('before') }], function(){ this.focusRibbon('before') }],
nextRibbon: ['Focus next ribbon', nextRibbon: ['Focus next ribbon',