minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-01-02 10:07:04 +04:00
parent 0dda320a5e
commit 3fb7be1458
2 changed files with 27 additions and 21 deletions

View File

@ -469,6 +469,32 @@ var KEYBOARD_CONFIG = {
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...
Up: {
@ -586,26 +612,6 @@ var KEYBOARD_CONFIG = {
ctrl: doc('Toggle bookmark',
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: {
default: doc('Start slideshow',

View File

@ -400,7 +400,7 @@ function getGapEdge(direction, tag, gids){
var get = direction == 'next' ? getGIDAfter : getGIDBefore
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 step = direction == 'next' ? 1 : -1