mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 10:50:08 +00:00
revised some key bindings...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
78a1e72db5
commit
4930b816e7
@ -466,42 +466,32 @@ var KEYBOARD_CONFIG = {
|
|||||||
// i.e. marking can change direction depending on where
|
// i.e. marking can change direction depending on where
|
||||||
// we moved last...
|
// we moved last...
|
||||||
// NOTE: marking does not change move direction...
|
// NOTE: marking does not change move direction...
|
||||||
|
// XXX should this toggle or set mark to on?
|
||||||
default: doc('Mark current image and advance',
|
default: doc('Mark current image and advance',
|
||||||
function(){
|
function(){
|
||||||
toggleImageMark()
|
toggleImageMark('on')
|
||||||
directionImage()
|
directionImage()
|
||||||
if(getImage().filter(':visible').length == 0){
|
// XXX do we need this???
|
||||||
centerView(focusImage(getImageBefore()))
|
//if(getImage().filter(':visible').length == 0){
|
||||||
}
|
// centerView(focusImage(getImageBefore()))
|
||||||
|
//}
|
||||||
centerRibbons()
|
centerRibbons()
|
||||||
}),
|
}),
|
||||||
// same as default but in reverse direction...
|
// same as default but in reverse direction...
|
||||||
shift: doc('Mark current image and return',
|
shift: doc('Mark current image and return',
|
||||||
function(){
|
function(){
|
||||||
toggleImageMark()
|
toggleImageMark('on')
|
||||||
directionImage(true)
|
directionImage(true)
|
||||||
if(getImage().filter(':visible').length == 0){
|
// XXX do we need this???
|
||||||
centerView(focusImage(getImageBefore()))
|
//if(getImage().filter(':visible').length == 0){
|
||||||
}
|
// centerView(focusImage(getImageBefore()))
|
||||||
|
//}
|
||||||
centerRibbons()
|
centerRibbons()
|
||||||
}),
|
}),
|
||||||
ctrl: 'Ins',
|
|
||||||
},
|
|
||||||
Ins: doc('Mark current image', function(){ toggleImageMark() }),
|
|
||||||
I: {
|
|
||||||
default: doc('Toggle image info display',
|
|
||||||
function(){ toggleImageInfo() }),
|
|
||||||
shift: doc('Show current image info',
|
|
||||||
function(){ toggleImageInfoDrawer() }),
|
|
||||||
alt: doc('Toggle inline image info display',
|
|
||||||
function(){
|
|
||||||
toggleInlineImageInfo()
|
|
||||||
}),
|
|
||||||
|
|
||||||
// marking...
|
|
||||||
ctrl: doc('Invert image marks',
|
|
||||||
function(){ invertImageMarks() }),
|
|
||||||
},
|
},
|
||||||
|
Ins: doc('Toggle mark on current image', function(){ toggleImageMark() }),
|
||||||
|
'invert-marks': doc('Invert image marks',
|
||||||
|
function(){ invertImageMarks() }),
|
||||||
A: {
|
A: {
|
||||||
// XXX does not yet work with DATA (???)
|
// XXX does not yet work with DATA (???)
|
||||||
//shift: doc('Toggle marks in current contagious block',
|
//shift: doc('Toggle marks in current contagious block',
|
||||||
@ -519,15 +509,19 @@ var KEYBOARD_CONFIG = {
|
|||||||
function(){ removeImageMarks('all') }),
|
function(){ removeImageMarks('all') }),
|
||||||
},
|
},
|
||||||
U: {
|
U: {
|
||||||
|
default: doc('Unmark current image',
|
||||||
|
function(){ toggleImageMark('off') }),
|
||||||
ctrl: doc('Unmark current ribbon',
|
ctrl: doc('Unmark current ribbon',
|
||||||
function(){ removeImageMarks('ribbon') }),
|
function(){ removeImageMarks('ribbon') }),
|
||||||
shift: doc('Unamrk all',
|
shift: doc('Unamrk all',
|
||||||
function(){ removeImageMarks('all') }),
|
function(){ removeImageMarks('all') }),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
F2: {
|
F2: {
|
||||||
default: doc('Toggle mark visibility',
|
default: doc('Toggle mark visibility',
|
||||||
function(){ toggleMarkesView() }),
|
function(){ toggleMarkesView() }),
|
||||||
shift: 'F3',
|
//shift: 'F3',
|
||||||
},
|
},
|
||||||
F3: doc('Toggle marked only images view',
|
F3: doc('Toggle marked only images view',
|
||||||
function(){
|
function(){
|
||||||
@ -536,12 +530,27 @@ var KEYBOARD_CONFIG = {
|
|||||||
|
|
||||||
|
|
||||||
E: doc('Open image in external software', openImage),
|
E: doc('Open image in external software', openImage),
|
||||||
|
// XXX make F4 a default editor and E a default viewer...
|
||||||
F4: {
|
F4: {
|
||||||
default: 'E',
|
default: 'E',
|
||||||
alt: doc('Close viewer'),
|
alt: doc('Close viewer'),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// info...
|
||||||
|
I: {
|
||||||
|
default: doc('Toggle image info display',
|
||||||
|
function(){ toggleImageInfo() }),
|
||||||
|
shift: doc('Show current image info',
|
||||||
|
function(){ toggleImageInfoDrawer() }),
|
||||||
|
alt: doc('Toggle inline image info display',
|
||||||
|
function(){
|
||||||
|
toggleInlineImageInfo()
|
||||||
|
}),
|
||||||
|
|
||||||
|
// marking...
|
||||||
|
ctrl: 'invert-marks',
|
||||||
|
},
|
||||||
P: doc('Show options',
|
P: doc('Show options',
|
||||||
function(){ toggleOptionsUI() }),
|
function(){ toggleOptionsUI() }),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user