Rename alterSelection to editSelectedText

This commit is contained in:
Kevin Sawicki
2012-10-03 21:07:50 -07:00
parent 2d8be51e71
commit d93a142263
4 changed files with 16 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ class EditorCommand
for key, event of keymaps
editor.on event, => @execute(editor, event)
@alterSelection: (editor, transform) ->
@editSelectedText: (editor, transform) ->
selection = editor.getSelection()
return false if selection.isEmpty()

View File

@@ -7,5 +7,5 @@ class LowerCaseCommand extends EditorCommand
'meta-Y': 'lowercase'
@execute: (editor, event) ->
@alterSelection editor, (text) ->
@editSelectedText editor, (text) ->
text.toLowerCase()

View File

@@ -7,5 +7,5 @@ class UpperCaseCommand extends EditorCommand
'meta-X': 'uppercase'
@execute: (editor, event) ->
@alterSelection editor, (text) ->
@editSelectedText editor, (text) ->
text.toUpperCase()