mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 00:31:40 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0dda320a5e
commit
3fb7be1458
@ -469,6 +469,32 @@ var KEYBOARD_CONFIG = {
|
|||||||
centerRibbons()
|
centerRibbons()
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
// bookmark navigation...
|
||||||
|
'[': doc('Previous bookmarked image',
|
||||||
|
function(){ prevBookmark() }),
|
||||||
|
']': doc('Next bookmarked image',
|
||||||
|
function(){ nextBookmark() }),
|
||||||
|
|
||||||
|
// marked/unmarked navigation...
|
||||||
|
',': {
|
||||||
|
default: doc('Previous marked image',
|
||||||
|
function(){ prevMark() }),
|
||||||
|
shift: doc('Previous unmarked image',
|
||||||
|
function(){ prevUnmarked() }),
|
||||||
|
},
|
||||||
|
'.': {
|
||||||
|
default: doc('Next marked image',
|
||||||
|
function(){ nextMark() }),
|
||||||
|
shift: doc('Next unmarked image',
|
||||||
|
function(){ nextUnmarked() }),
|
||||||
|
},
|
||||||
|
|
||||||
|
// sorted section navigation...
|
||||||
|
'{': doc('Previous unsorted section edge',
|
||||||
|
function(){ prevUnsortedSection() }),
|
||||||
|
'}': doc('Next unsorted section edge',
|
||||||
|
function(){ nextUnsortedSection() }),
|
||||||
|
|
||||||
|
|
||||||
// combined navigation and editor actions...
|
// combined navigation and editor actions...
|
||||||
Up: {
|
Up: {
|
||||||
@ -586,26 +612,6 @@ var KEYBOARD_CONFIG = {
|
|||||||
ctrl: doc('Toggle bookmark',
|
ctrl: doc('Toggle bookmark',
|
||||||
function(){ toggleBookmark() }),
|
function(){ toggleBookmark() }),
|
||||||
},
|
},
|
||||||
'[': doc('Previous bookmarked image',
|
|
||||||
function(){ prevBookmark() }),
|
|
||||||
']': doc('Next bookmarked image',
|
|
||||||
function(){ nextBookmark() }),
|
|
||||||
',': {
|
|
||||||
default: doc('Previous marked image',
|
|
||||||
function(){ prevMark() }),
|
|
||||||
shift: doc('Previous unmarked image',
|
|
||||||
function(){ prevUnmarked() }),
|
|
||||||
},
|
|
||||||
'.': {
|
|
||||||
default: doc('Next marked image',
|
|
||||||
function(){ nextMark() }),
|
|
||||||
shift: doc('Next unmarked image',
|
|
||||||
function(){ nextUnmarked() }),
|
|
||||||
},
|
|
||||||
'{': doc('Previous unsorted section edge',
|
|
||||||
function(){ prevUnsortedSection() }),
|
|
||||||
'}': doc('Next unsorted section edge',
|
|
||||||
function(){ nextUnsortedSection() }),
|
|
||||||
|
|
||||||
S: {
|
S: {
|
||||||
default: doc('Start slideshow',
|
default: doc('Start slideshow',
|
||||||
|
|||||||
@ -400,7 +400,7 @@ function getGapEdge(direction, tag, gids){
|
|||||||
var get = direction == 'next' ? getGIDAfter : getGIDBefore
|
var get = direction == 'next' ? getGIDAfter : getGIDBefore
|
||||||
|
|
||||||
gids = gids == null ? getRibbonGIDs() : gids
|
gids = gids == null ? getRibbonGIDs() : gids
|
||||||
var tagged = TAGS[tag]
|
var tagged = TAGS[tag].filter(function(e){ return gids.indexOf(e) >= 0 })
|
||||||
var cur = getImageGID()
|
var cur = getImageGID()
|
||||||
var step = direction == 'next' ? 1 : -1
|
var step = direction == 'next' ? 1 : -1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user