mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
fixed a bug in keyboard and browse EditableList(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a145667637
commit
1762192352
@ -1357,7 +1357,7 @@ var KeyboardUIActions = actions.Actions({
|
|||||||
})
|
})
|
||||||
|
|
||||||
var new_keys = code == orig_code ?
|
var new_keys = code == orig_code ?
|
||||||
keys.filter(function(k){ orig_keys.indexOf(k) < 0 })
|
keys.filter(function(k){ return orig_keys.indexOf(k) < 0 })
|
||||||
: keys
|
: keys
|
||||||
|
|
||||||
// add keys...
|
// add keys...
|
||||||
|
|||||||
@ -457,8 +457,6 @@ function(data, options){
|
|||||||
: options.isItemHidden,
|
: options.isItemHidden,
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('LIST:', keys)
|
|
||||||
|
|
||||||
keys.forEach(function(k){
|
keys.forEach(function(k){
|
||||||
var txt
|
var txt
|
||||||
var opts = Object.create(options)
|
var opts = Object.create(options)
|
||||||
@ -716,10 +714,6 @@ function(list, options){
|
|||||||
list()
|
list()
|
||||||
: list
|
: list
|
||||||
var editable = dialog.__editable[id] = lst instanceof Array
|
var editable = dialog.__editable[id] = lst instanceof Array
|
||||||
// keep editable state...
|
|
||||||
&& dialog.__editable[id]
|
|
||||||
|
|
||||||
// view objects...
|
|
||||||
// NOTE: we .slice() here to make the changes a bit better packaged
|
// NOTE: we .slice() here to make the changes a bit better packaged
|
||||||
// or discrete and not done as they come in...
|
// or discrete and not done as they come in...
|
||||||
lst = lst instanceof Array ? lst.slice() : Object.keys(lst)
|
lst = lst instanceof Array ? lst.slice() : Object.keys(lst)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user