         @editor.on 'changeSelection', callback
         return
 
-    # onMove: (cursorEvent) ->
-    #     if @onMoveCallback != null
-    #         @onMoveCallback cursorEvent
-
     switchUp: ({currentRow, currentColumn}) ->
         maxRow = @editSession.getLength()
         if currentRow - 1 < @codePrefixLength or currentRow >= maxRow - @codeSuffixLength

        @editor.clearSelection()
        @reIndentCode()
        @gotoLine @codePrefixLength + 1
        return

    reIndentCode: =>

    ###
        Creates and provides functionality for an Ace editor representing player's code.
    ###
    constructor: (@editorDivId, @commands, codeText, @wrapCode, @codePrefix, @codeSuffix, @freeEdit, @interpreter) ->
        ###
            Sets internal variables, the default text and buttons
            and their event handlers.
