mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6ffd4e1e84
commit
03b1245367
@ -311,6 +311,7 @@ var KEYBOARD_CONFIG = {
|
||||
// XXX this breaks getKeyHandlers(...) when modes argument is given...
|
||||
'Ribbon view': {
|
||||
pattern: '.viewer:not(.overlay):not(.single-image-mode)',
|
||||
ignore: [ '#1', '#2', '#3', '#4', '#5', '#6', '#7', '#8', '#9', '#0' ],
|
||||
|
||||
Left: {
|
||||
// XXX revise...
|
||||
@ -397,16 +398,16 @@ var KEYBOARD_CONFIG = {
|
||||
},
|
||||
|
||||
// zooming...
|
||||
'#1': doc('Fit one image', function(){ return !fitNImages(1) }),
|
||||
'#2': doc('Fit two images', function(){ return !fitNImages(2) }),
|
||||
'#3': doc('Fit three images', function(){ return !fitNImages(3) }),
|
||||
'#4': doc('Fit four images', function(){ return !fitNImages(4) }),
|
||||
'#5': doc('Fit five images', function(){ return !fitNImages(5) }),
|
||||
'#6': doc('Fit six images', function(){ return !fitNImages(6) }),
|
||||
'#7': doc('Fit seven images', function(){ return !fitNImages(7) }),
|
||||
'#8': doc('Fit eight images', function(){ return !fitNImages(8) }),
|
||||
'#9': doc('Fit nine images', function(){ return !fitNImages(9) }),
|
||||
'#0': doc('Fit maximum images', function(){ return !fitNImages(getScreenWidthInImages(CONFIG.min_image_size)) }),
|
||||
'#1': doc('Fit one image', function(){ fitNImages(1) }),
|
||||
'#2': doc('Fit two images', function(){ fitNImages(2) }),
|
||||
'#3': doc('Fit three images', function(){ fitNImages(3) }),
|
||||
'#4': doc('Fit four images', function(){ fitNImages(4) }),
|
||||
'#5': doc('Fit five images', function(){ fitNImages(5) }),
|
||||
'#6': doc('Fit six images', function(){ fitNImages(6) }),
|
||||
'#7': doc('Fit seven images', function(){ fitNImages(7) }),
|
||||
'#8': doc('Fit eight images', function(){ fitNImages(8) }),
|
||||
'#9': doc('Fit nine images', function(){ fitNImages(9) }),
|
||||
'#0': doc('Fit maximum images', function(){ fitNImages(getScreenWidthInImages(CONFIG.min_image_size)) }),
|
||||
|
||||
// cropping...
|
||||
C: doc('Show ribbon crop dialog', cropImagesDialog),
|
||||
|
||||
@ -249,17 +249,11 @@ function getKeyHandlers(key, modifiers, keybindings, modes, shifted_keys){
|
||||
for(var title in keybindings){
|
||||
|
||||
// If a key is ignored then look no further...
|
||||
/*
|
||||
if(did_ignore && modes != 'all'){
|
||||
break
|
||||
}
|
||||
*/
|
||||
if(did_ignore){
|
||||
if(modes != 'all'){
|
||||
break
|
||||
} else {
|
||||
did_ignore = false
|
||||
// XXX do we actually need this???
|
||||
if(modifiers != '?' && res[mode] != 'IGNORE'){
|
||||
res[mode] = [ res[mode], 'IGNORE NEXT']
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user