Re: [b2g] Catch enter key press event of virtual keyboard

2014-05-23 Thread Yuan Xulei()
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

Re: [b2g] How do we use the browser to open web pages stored on the SD card?

2014-02-14 Thread Yuan Xulei()
On 2014年02月06日 03:05, Fabrice Desré wrote: On 02/05/2014 06:04 AM, Hugh Tay wrote: I tried the following: /sdcard/Folder/index.html file:///sdcard/Folder/index.html sdcard://Folder/index.html ... But none of them seems to work. Any ideas? You can't do that from the browser for now.

Re: [b2g] keyboard build-time customization

2013-10-19 Thread Yuan Xulei()
Great work! It enables gaia to incorporate keyboard layouts and dictionaries for more languages. On 13-10-19 上午4:42, David Flanagan wrote: I've just landed bug 884752 to master, and will be working to get it uplifted to 1.2 soon. If you are in QA or automation or release engineering and you

Re: [b2g] New autocorrect dictionaries will increase build size by ~18mb

2013-08-26 Thread Yuan Xulei()
On 08/25/2013 01:49 PM, Andreas Gal wrote: As for predictive text, we should put a version of the keyboard with more dictionaries into the marketplace so people can download what doesn't come with the phone. Is it possible to let user download extra dictionaries when needed? Or even let user

Re: [b2g] Firefox OS keyboard event

2013-08-08 Thread Yuan Xulei()
Hi, There is no special event for keyboard opening, but the keyboard opens after receiving the focus event of current input field. So you may listen to that event instead. Yuan On 08/09/2013 03:52 AM, neo...@gmail.com wrote: Does anyone know if in Firefox OS, When keyboard opens, I have an