From 7e03d3c3f6c4c6fd641b193ebeab73acda6026e4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 14 Apr 2016 18:58:27 +0300 Subject: [PATCH] minor bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-status.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/features/ui-status.js b/ui (gen4)/features/ui-status.js index f8e97927..21fc31c4 100755 --- a/ui (gen4)/features/ui-status.js +++ b/ui (gen4)/features/ui-status.js @@ -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()