Prefix "move-*" events with "core:"

I want to prefix all custom events for better categorization and to
distinguish them from built-in webkit events
This commit is contained in:
Nathan Sobo
2012-10-04 10:35:27 -10:00
parent c30220ae80
commit 67c6ed8de7
8 changed files with 36 additions and 36 deletions

View File

@@ -91,10 +91,10 @@ class Editor extends View
bindKeys: ->
editorBindings =
'move-right': @moveCursorRight
'move-left': @moveCursorLeft
'move-down': @moveCursorDown
'move-up': @moveCursorUp
'core:move-right': @moveCursorRight
'core:move-left': @moveCursorLeft
'core:move-down': @moveCursorDown
'core:move-up': @moveCursorUp
'move-to-next-word': @moveCursorToNextWord
'move-to-previous-word': @moveCursorToPreviousWord
'select-right': @selectRight

View File

@@ -1,10 +1,10 @@
window.keymap.bindKeys '*'
'meta-w': 'close'
'alt-meta-i': 'toggle-dev-tools'
right: 'move-right'
left: 'move-left'
down: 'move-down'
up: 'move-up'
right: 'core:move-right'
left: 'core:move-left'
down: 'core:move-down'
up: 'core:move-up'
pagedown: 'page-down'
pageup: 'page-up'
'meta-S': 'save-all'

View File

@@ -1,8 +1,8 @@
window.keymap.bindKeys '*',
'ctrl-f': 'move-right'
'ctrl-b': 'move-left'
'ctrl-p': 'move-up'
'ctrl-n': 'move-down'
'ctrl-f': 'core:move-right'
'ctrl-b': 'core:move-left'
'ctrl-p': 'core:move-up'
'ctrl-n': 'core:move-down'
window.keymap.bindKeys '.editor',
'ctrl-F': 'select-right'