"ctrl-w w" focuses the next pane. Move select-word binding to ctrl-W to avoid collision

This commit is contained in:
Nathan Sobo
2012-06-18 20:33:25 -06:00
parent c21766c328
commit b4e39785e5
2 changed files with 3 additions and 1 deletions

View File

@@ -5,7 +5,6 @@ window.keymap.bindKeys '.editor',
'shift-up': 'select-up'
'shift-down': 'select-down'
'meta-a': 'select-all'
'ctrl-w': 'select-word'
'enter': 'newline'
'meta-enter': 'newline-below'
'tab': 'tab'
@@ -33,3 +32,5 @@ window.keymap.bindKeys '.editor',
'meta-+': 'increase-font-size'
'meta--': 'decrease-font-size'
'meta-/': 'toggle-line-comments'
'ctrl-w w': 'focus-next-pane'
'ctrl-W': 'select-word'

View File

@@ -59,6 +59,7 @@ class RootView extends View
@on 'increase-font-size', => @setFontSize(@getFontSize() + 1)
@on 'decrease-font-size', => @setFontSize(@getFontSize() - 1)
@on 'focus-next-pane', => @focusNextPane()
afterAttach: (onDom) ->
@focus() if onDom