use keymaster instead of ace for keybindings.

keybindings now work anywhere in the window, not just when ace has
focus!
This commit is contained in:
Chris Wanstrath
2011-09-04 19:16:12 -07:00
parent 6186c278fd
commit 1d3b31849b

View File

@@ -1,11 +1,7 @@
ace = require 'ace/ace'
canon = require 'pilot/canon'
key = require 'keymaster'
exports.bindKey = (name, shortcut, callback) ->
canon.addCommand
name: name
exec: callback
bindKey:
win: null
mac: shortcut
sender: 'editor'
key shortcut, -> callback(); false