Where do you want to catch the event, from gecko or gaia?
From gecko, all virtual keyboard events are sent by mozKeyboard API:
https://github.com/mozilla/gecko-dev/blob/e4bc303acede847a913b70afa47fd6823b97297a/dom/inputmethod/MozKeyboard.js#L557
Hook the "sendKey" method and check the keyCode parameter to know
whether it is the enter key event.
From gaia, the keyboard app uses a wrapped "sendKey" function to
generate key events. You may hook this function to get the event:
https://github.com/mozilla-b2g/gaia/blob/27c85c3329325d49413c775a1a122889520cd0bd/apps/keyboard/js/keyboard.js#L1590
Yuan
On 05/23/2014 02:10 AM, Niladri dutta wrote:
Sorry if this is a repost . Can anybody help me about how to catch the enter
key press event for Firefox OS virtual keypad ???
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g