 
     validate: () -> return @validateValue(@getValue())
 
-    disable_horizontal_navigation: () ->
-      @$el.bind "keydown", (event) =>
-        if event.keyCode == $.ui.keyCode.LEFT or event.keyCode == $.ui.keyCode.RIGHT
-          event.stopImmediatePropagation()
-
-    disable_vertical_navigation: () ->
-      @$el.bind "keydown", (event) =>
-        if event.keyCode == $.ui.keyCode.UP   or event.keyCode == $.ui.keyCode.PAGE_UP   or
-           event.keyCode == $.ui.keyCode.DOWN or event.keyCode == $.ui.keyCode.PAGE_DOWN
-          event.stopImmediatePropagation()
-
   class StringEditorView extends CellEditorView
 
     emptyValue: ""
 
     el: '<input type="text" class="bk-cell-editor bk-cell-editor-string" />'
 
-    render: () ->
+    renderEditor: () ->
       completions = @model.get("completions")
       if not _.isEmpty(completions)
         @$el.autocomplete(source: completions)
         @$el.autocomplete("widget").addClass("bk-cell-editor-completion")
-      @disable_horizontal_navigation()
-      @disable_vertical_navigation()
       @$el.focus().select()
 
     loadValue: (item) ->


    el: '<input type="text" class="bk-cell-editor bk-cell-editor-int" />'

    render: () ->
      @$el.spinner(step: @model.get("step"))
      @disable_horizontal_navigation()
      @disable_vertical_navigation()
      @$el.focus().select()

    remove: () ->

      @args = args
      @model = @args.column.editorModel
      @render()

    render: () ->
      @renderEditor()
      @disableNavigation()
      @$el.appendTo(@args.container)

    renderEditor: () ->

    disableNavigation: () ->
      @$el.keydown (event) =>
        stop = () -> event.stopImmediatePropagation()
        switch event.keyCode
          when $.ui.keyCode.LEFT      then stop()
          when $.ui.keyCode.RIGHT     then stop()
          when $.ui.keyCode.UP        then stop()
          when $.ui.keyCode.DOWN      then stop()
          when $.ui.keyCode.PAGE_UP   then stop()
          when $.ui.keyCode.PAGE_DOWN then stop()

    destroy: () -> @remove()

