bindkey takes a scope, keycap is a method

This commit is contained in:
Corey Johnson
2011-09-20 15:25:36 -07:00
parent 9eee6ad9ad
commit 664fa5b06f
8 changed files with 29 additions and 30 deletions

View File

@@ -10,12 +10,12 @@ class Window extends Pane
nswindow: null
panes: []
keymap:
'Command-N' : 'new'
'Command-O' : 'open'
'Command-Shift-O' : 'openURL'
'Command-Ctrl-K' : 'showConsole'
'Command-Ctrl-R' : 'reload'
keymap: ->
'Command-N' : @new
'Command-O' : @open
'Command-Shift-O' : @openURL
'Command-Ctrl-K' : @showConsole
'Command-Ctrl-R' : @reload
constructor: (options={}) ->
super options