From 3de5dae2b9ff942c084054d4aee9933aab63390a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 31 Aug 2018 15:19:35 +0300 Subject: [PATCH] added debounce code to the key list editor Signed-off-by: Alex A. Naanou --- ui (gen4)/features/keyboard.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index aff11612..2b7b06ea 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -1144,11 +1144,11 @@ var KeyboardUIActions = actions.Actions({ } else { var doc = o.doc - var text = o.action - + (o.no_default ? '!' : '') - + (o.arguments.length > 0 ? - (': '+ o.arguments.map(JSON.stringify).join(' ')) + var text = (o.debounce ? + `@${o.debounce} ` : '') + + o.code.split('--')[0].trim() + } var hidden = !options.show_non_actions @@ -1198,6 +1198,7 @@ var KeyboardUIActions = actions.Actions({ doc : (kb.special_handlers[action] || null), + 'debounce': o.debounce || '', }) .addClass('key' // special stuff...