mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
more tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ea15988234
commit
8c53b856d0
@ -2267,7 +2267,8 @@ var BrowserPrototype = {
|
|||||||
&& that.keyboard.handler(
|
&& that.keyboard.handler(
|
||||||
'ItemShortcuts',
|
'ItemShortcuts',
|
||||||
opts.shortcut_key,
|
opts.shortcut_key,
|
||||||
function(){ that.push(res) })
|
//function(){ that.push(res) })
|
||||||
|
function(){ that.select(res) })
|
||||||
|
|
||||||
// text marker...
|
// text marker...
|
||||||
if(item_shortcut_marker){
|
if(item_shortcut_marker){
|
||||||
@ -2279,7 +2280,8 @@ var BrowserPrototype = {
|
|||||||
&& that.keyboard.handler(
|
&& that.keyboard.handler(
|
||||||
'ItemShortcuts',
|
'ItemShortcuts',
|
||||||
key,
|
key,
|
||||||
function(){ that.push(res) })
|
//function(){ that.push(res) })
|
||||||
|
function(){ that.action(res) })
|
||||||
return key
|
return key
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3416,8 +3418,8 @@ var BrowserPrototype = {
|
|||||||
//
|
//
|
||||||
// NOTE: this ignores items with empty text...
|
// NOTE: this ignores items with empty text...
|
||||||
// XXX not sure about this...
|
// XXX not sure about this...
|
||||||
action: function(){
|
action: function(elem){
|
||||||
var elem = this.select('!')
|
elem = this.select(elem || '!')
|
||||||
|
|
||||||
// nothing selected, select first and exit...
|
// nothing selected, select first and exit...
|
||||||
if(elem.length == 0){
|
if(elem.length == 0){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user