minor bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-14 18:58:27 +03:00
parent 04dcf93c0c
commit 7e03d3c3f6

View File

@ -139,12 +139,19 @@ var StatusBarActions = actions.Actions({
}
})
// update image position...
// XXX this appears to be run in the node context...
.keyup(function(){
event.stopPropagation()
// XXX KeyboardEvent does not appear to have this...
//event.stopPropagation()
(that.config['status-bar-index'] || {})['live-update-on-edit']
&& that.focusImage(i,
if((that.config['status-bar-index'] || {})['live-update-on-edit']){
var i = parseInt($(this).text())
i = i >= 1 ? i-1
: i == null ? 'current'
: i
that.focusImage(i,
item.hasClass('global') ? 'global' : undefined)
}
})
.click(function(){
$(this).selectText()