mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user