From c0843d467d603566133c298ffe41b1541a9e45f8 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 16 Oct 2014 15:58:14 -0600 Subject: [PATCH] Opt out of command registration for textInput events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There seems to be issues capturing them when they are programmatically dispatched via dispatchEvent. This was causing problems for the vim-mode specs. This event belongs among the native events that aren’t treated as commands anyway. --- src/space-pen-extensions.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/space-pen-extensions.coffee b/src/space-pen-extensions.coffee index ec3c1a7a2..e295de872 100644 --- a/src/space-pen-extensions.coffee +++ b/src/space-pen-extensions.coffee @@ -19,7 +19,8 @@ NativeEventNames = new Set NativeEventNames.add(nativeEvent) for nativeEvent in ["blur", "focus", "focusin", "focusout", "load", "resize", "scroll", "unload", "click", "dblclick", "mousedown", "mouseup", "mousemove", "mouseover", "mouseout", "mouseenter", "mouseleave", "change", -"select", "submit", "keydown", "keypress", "keyup", "error", "contextmenu"] +"select", "submit", "keydown", "keypress", "keyup", "error", "contextmenu", "textInput", +"textinput"] JQueryTrigger = jQuery.fn.trigger jQuery.fn.trigger = (eventName, data) ->