From 8c53b856d0418d91c4c36ad193ff9499c622990c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 9 Feb 2017 16:50:26 +0300 Subject: [PATCH] more tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/browse.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index e68e452b..f24698ef 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -2267,7 +2267,8 @@ var BrowserPrototype = { && that.keyboard.handler( 'ItemShortcuts', opts.shortcut_key, - function(){ that.push(res) }) + //function(){ that.push(res) }) + function(){ that.select(res) }) // text marker... if(item_shortcut_marker){ @@ -2279,7 +2280,8 @@ var BrowserPrototype = { && that.keyboard.handler( 'ItemShortcuts', key, - function(){ that.push(res) }) + //function(){ that.push(res) }) + function(){ that.action(res) }) return key } @@ -3416,8 +3418,8 @@ var BrowserPrototype = { // // NOTE: this ignores items with empty text... // XXX not sure about this... - action: function(){ - var elem = this.select('!') + action: function(elem){ + elem = this.select(elem || '!') // nothing selected, select first and exit... if(elem.length == 0){