some cleanup and tweeking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-05-03 05:47:26 +04:00
parent 7c140244be
commit faef26fd79
2 changed files with 3 additions and 25 deletions

View File

@ -356,7 +356,9 @@ function centerRibbon(ribbon, mode){
// a shorthand...
function centerRibbons(mode){
return $('.ribbon').each(function(){ centerRibbon($(this), mode) })
return $('.ribbon')
.filter(':visible')
.each(function(){ centerRibbon($(this), mode) })
}

View File

@ -34,22 +34,10 @@ var KEYBOARD_CONFIG = {
prevImage()
centerRibbons()
},
// XXX prevScreenImages...
ctrl: function(){
prevScreenImages()
centerRibbons()
},
// XXX need to keep shift explicitly clear for editor...
/*
shift: function(){
toggleImageMark()
prevImage()
},
// XXX mark screen images...
'ctrl+shift': function(){
console.log('NotImplemented: mark screen images back.')
}
*/
},
Right: {
default: function(){
@ -65,22 +53,10 @@ var KEYBOARD_CONFIG = {
nextImage()
centerRibbons()
},
// XXX nextScreenImages...
ctrl: function(){
nextScreenImages()
centerRibbons()
},
// XXX need to keep shift explicitly clear for editor...
/*
shift: function(){
toggleImageMark()
nextImage()
},
// XXX mark screen images...
'ctrl+shift': function(){
console.log('NotImplemented: mark screen images forward.')
}
*/
},
Space: {
default: 'Right',