From 10738a754b0d8dcfe7dd8fff708f6bd02728cb70 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 10 Feb 2017 02:19:19 +0300 Subject: [PATCH] found and seem to have fixed a fantom bug))) Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/keyboard.js | 8 ++++---- ui (gen4)/lib/widget/browse.js | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/lib/keyboard.js b/ui (gen4)/lib/keyboard.js index 5151deb6..74500377 100755 --- a/ui (gen4)/lib/keyboard.js +++ b/ui (gen4)/lib/keyboard.js @@ -781,10 +781,10 @@ var KeyboardPrototype = { handler = modifiers .filter(function(m){ - console.log('>>>>', handler) - return handler.indexOf(m) < 0 - && seen.indexOf(m+handler) < 0 - && m+handler in bindings }) + return handler instanceof Function + || (handler.indexOf(m) < 0 + && seen.indexOf(m+handler) < 0 + && m+handler in bindings) }) .map(function(m){ return m+handler })[0] || handler diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index f24698ef..c05daeb6 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -1592,13 +1592,17 @@ var BrowserPrototype = { '#8': 'push!: "7!"', '#9': 'push!: "8!"', '#0': 'push!: "9!"', + + // handlers for standard shortcuts... + ctrl_C: function(){ console.log('!!!!!') }, + + }, ItemShortcuts: { doc: 'Item shortcuts', pattern: '*', - }, },