From f2508d7be28ffee8d8f44735ccc9487f02c66adf Mon Sep 17 00:00:00 2001 From: jazzpi Date: Thu, 26 Mar 2015 18:28:26 +0100 Subject: [PATCH] Fix #23 --- lib/ex-command-mode-input-view.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ex-command-mode-input-view.coffee b/lib/ex-command-mode-input-view.coffee index a31f04c..deb9f37 100644 --- a/lib/ex-command-mode-input-view.coffee +++ b/lib/ex-command-mode-input-view.coffee @@ -28,14 +28,14 @@ class ExCommandModeInputView extends View @editor.find('input').on 'textInput', @autosubmit @editor.on 'core:confirm', @confirm @editor.on 'core:cancel', @cancel - @editor.find('input').on 'blur', @cancel + @editor.on 'blur', @cancel stopHandlingEvents: -> if @singleChar? @editor.find('input').off 'textInput', @autosubmit @editor.off 'core:confirm', @confirm @editor.off 'core:cancel', @cancel - @editor.find('input').off 'blur', @cancel + @editor.off 'blur', @cancel autosubmit: (event) => @editor.setText(event.originalEvent.data)