found and seem to have fixed a fantom bug)))

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-02-10 02:19:19 +03:00
parent 8c53b856d0
commit 10738a754b
2 changed files with 9 additions and 5 deletions

View File

@ -781,10 +781,10 @@ var KeyboardPrototype = {
handler = modifiers
.filter(function(m){
console.log('>>>>', handler)
return handler.indexOf(m) < 0
return handler instanceof Function
|| (handler.indexOf(m) < 0
&& seen.indexOf(m+handler) < 0
&& m+handler in bindings })
&& m+handler in bindings) })
.map(function(m){ return m+handler })[0]
|| handler

View File

@ -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: '*',
},
},