mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added debounce code to the key list editor
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ea8fdcf557
commit
3de5dae2b9
@ -1144,11 +1144,11 @@ var KeyboardUIActions = actions.Actions({
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
var doc = o.doc
|
var doc = o.doc
|
||||||
var text = o.action
|
var text = (o.debounce ?
|
||||||
+ (o.no_default ? '!' : '')
|
`@${o.debounce} `
|
||||||
+ (o.arguments.length > 0 ?
|
|
||||||
(': '+ o.arguments.map(JSON.stringify).join(' '))
|
|
||||||
: '')
|
: '')
|
||||||
|
+ o.code.split('--')[0].trim()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var hidden = !options.show_non_actions
|
var hidden = !options.show_non_actions
|
||||||
@ -1198,6 +1198,7 @@ var KeyboardUIActions = actions.Actions({
|
|||||||
doc
|
doc
|
||||||
: (kb.special_handlers[action]
|
: (kb.special_handlers[action]
|
||||||
|| null),
|
|| null),
|
||||||
|
'debounce': o.debounce || '',
|
||||||
})
|
})
|
||||||
.addClass('key'
|
.addClass('key'
|
||||||
// special stuff...
|
// special stuff...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user