mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user