mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
tweaks + testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fada354813
commit
2651ed943f
@ -182,6 +182,16 @@ module.GLOBAL_KEYBOARD = {
|
|||||||
alt: 'browseActions: "/History/" -- Open history menu',
|
alt: 'browseActions: "/History/" -- Open history menu',
|
||||||
},
|
},
|
||||||
V: 'flipVertical',
|
V: 'flipVertical',
|
||||||
|
|
||||||
|
// tilt...
|
||||||
|
// XXX experimental, not sure if wee need this with a keyboard...
|
||||||
|
T: {
|
||||||
|
default: 'rotateRibbonCCW -- Tilt ribbons counter clock wise',
|
||||||
|
shift: 'rotateRibbonCW -- Tilt ribbons clock wise',
|
||||||
|
|
||||||
|
alt: 'resetRibbonRotation -- Reset ribbon tilt',
|
||||||
|
},
|
||||||
|
|
||||||
P: {
|
P: {
|
||||||
'ctrl+shift': 'F12',
|
'ctrl+shift': 'F12',
|
||||||
},
|
},
|
||||||
|
|||||||
@ -176,6 +176,8 @@ module.ViewerActions = actions.Actions({
|
|||||||
'transparent-ribbon',
|
'transparent-ribbon',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'ribbon-rotation-step': 10,
|
||||||
|
|
||||||
// XXX BUG: for some reason this get's shadowed by base.config...
|
// XXX BUG: for some reason this get's shadowed by base.config...
|
||||||
'ribbon-focus-modes': [
|
'ribbon-focus-modes': [
|
||||||
'visual', // select image closest visually
|
'visual', // select image closest visually
|
||||||
@ -867,10 +869,23 @@ module.ViewerActions = actions.Actions({
|
|||||||
return this.ribbons.rotate() || 0
|
return this.ribbons.rotate() || 0
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
// Rotate ribbon CW/CCW...
|
||||||
|
//
|
||||||
|
// Rotate ribbon (default step)
|
||||||
|
// .rotateRibbonCW()
|
||||||
|
//
|
||||||
|
// Rotate ribbon by step...
|
||||||
|
// .rotateRibbonCW(5)
|
||||||
|
//
|
||||||
|
// NOTE: default step is set by .config['ribbon-rotation-step']
|
||||||
rotateRibbonCW: ['Interface/Rotate ribbon clockwise',
|
rotateRibbonCW: ['Interface/Rotate ribbon clockwise',
|
||||||
function(a){ this.ribbonRotation('+='+ (a || 10)) }],
|
function(a){
|
||||||
|
this.ribbonRotation('+='+ (a || this.config['ribbon-rotation-step'] || 10)) }],
|
||||||
rotateRibbonCCW: ['Interface/Rotate ribbon coounter clockwise',
|
rotateRibbonCCW: ['Interface/Rotate ribbon coounter clockwise',
|
||||||
function(a){ this.ribbonRotation('-='+ (a || 10)) }],
|
function(a){
|
||||||
|
this.ribbonRotation('-='+ (a || this.config['ribbon-rotation-step'] || 10)) }],
|
||||||
|
|
||||||
resetRibbonRotation: ['Interface/Reset ribbon rotation',
|
resetRibbonRotation: ['Interface/Reset ribbon rotation',
|
||||||
function(){ this.ribbonRotation(0) }],
|
function(){ this.ribbonRotation(0) }],
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user