more tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-02-09 16:50:26 +03:00
parent ea15988234
commit 8c53b856d0

View File

@ -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){