I set a gesture to send the return key to quickly send messages that I copied and pasted.
FireGestures.sendKeyEvent({ keyCode: "DOM_VK_RETURN" });
the event works well in most of the search form, type google etc, but if I do it in the chatbox of facebook, I get a carriage return (like you get with ALT + RETURN). i don't want use RETURN, but the specification of the key codes that read: DOM_VK_ENTER has been never used for representing native key events. Therefore, it's removed for preventing developers being confused.
why?
I set a gesture to send the return key to quickly send messages that I copied and pasted. FireGestures.sendKeyEvent({ keyCode: "DOM_VK_RETURN" }); the event works well in most of the search form, type google etc, but if I do it in the chatbox of facebook, I get a carriage return (like you get with ALT + RETURN). i don't want use RETURN, but the specification of the key codes that read: DOM_VK_ENTER has been never used for representing native key events. Therefore, it's removed for preventing developers being confused. why?