Move cut, copy, and paste into "core:"

This commit is contained in:
Nathan Sobo 2012-10-04 11:22:48 -10:00
parent 23f4e533d9
commit 0ab50cf102
3 changed files with 6 additions and 6 deletions

View File

@ -110,9 +110,9 @@ class Editor extends View
'core:delete': @delete 'core:delete': @delete
'core:undo': @undo 'core:undo': @undo
'core:redo': @redo 'core:redo': @redo
'cut': @cutSelection 'core:cut': @cutSelection
'copy': @copySelection 'core:copy': @copySelection
'paste': @paste 'core:paste': @paste
'move-to-next-word': @moveCursorToNextWord 'move-to-next-word': @moveCursorToNextWord
'move-to-previous-word': @moveCursorToPreviousWord 'move-to-previous-word': @moveCursorToPreviousWord
'select-word': @selectWord 'select-word': @selectWord

View File

@ -15,6 +15,9 @@ window.keymap.bindKeys 'body'
'delete': 'core:delete' 'delete': 'core:delete'
'meta-z': 'core:undo' 'meta-z': 'core:undo'
'meta-Z': 'core:redo' 'meta-Z': 'core:redo'
'meta-x': 'core:cut'
'meta-c': 'core:copy'
'meta-v': 'core:paste'
pageup: 'core:page-up' pageup: 'core:page-up'
pagedown: 'core:page-down' pagedown: 'core:page-down'
'meta-S': 'save-all' 'meta-S': 'save-all'

View File

@ -4,9 +4,6 @@ window.keymap.bindKeys '.editor',
'meta-enter': 'newline-below' 'meta-enter': 'newline-below'
'tab': 'indent' 'tab': 'indent'
'meta-d': 'delete-line' 'meta-d': 'delete-line'
'meta-x': 'cut'
'meta-c': 'copy'
'meta-v': 'paste'
'alt-meta-w': 'toggle-soft-wrap' 'alt-meta-w': 'toggle-soft-wrap'
'ctrl-[': 'fold-current-row' 'ctrl-[': 'fold-current-row'
'ctrl-]': 'unfold-current-row' 'ctrl-]': 'unfold-current-row'