Fix #23
This commit is contained in:
parent
1d0559fb16
commit
dc527a960c
1 changed files with 2 additions and 2 deletions
|
|
@ -28,14 +28,14 @@ class ExCommandModeInputView extends View
|
||||||
@editor.find('input').on 'textInput', @autosubmit
|
@editor.find('input').on 'textInput', @autosubmit
|
||||||
@editor.on 'core:confirm', @confirm
|
@editor.on 'core:confirm', @confirm
|
||||||
@editor.on 'core:cancel', @cancel
|
@editor.on 'core:cancel', @cancel
|
||||||
@editor.find('input').on 'blur', @cancel
|
@editor.blur(@cancel)
|
||||||
|
|
||||||
stopHandlingEvents: ->
|
stopHandlingEvents: ->
|
||||||
if @singleChar?
|
if @singleChar?
|
||||||
@editor.find('input').off 'textInput', @autosubmit
|
@editor.find('input').off 'textInput', @autosubmit
|
||||||
@editor.off 'core:confirm', @confirm
|
@editor.off 'core:confirm', @confirm
|
||||||
@editor.off 'core:cancel', @cancel
|
@editor.off 'core:cancel', @cancel
|
||||||
@editor.find('input').off 'blur', @cancel
|
@editor.off 'blur', @cancel
|
||||||
|
|
||||||
autosubmit: (event) =>
|
autosubmit: (event) =>
|
||||||
@editor.setText(event.originalEvent.data)
|
@editor.setText(event.originalEvent.data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue