Lets say you have a textarea that on keycode 13 submits. Now you type something the dictionary doesnt know and wants to autocorrect, and you type ENTER. The word gets replaced, the form is not submitted, and a newline is inserted in the textarea. First, we should respect the event and let it fire. Then if the keydown/keyup did not get canceled, we can do a replacement.
Assignee: nobody → janjongboom
Created attachment 8349942 [details] Test case 1. Set locale to English 2. Type a word that we know 'Jan', press enter. Event gets canceled. 3. Type a mistaken word 'Tes', press enter. Gets replaced by 'Yes' and inserts a newline. 4. Additional: pressing backspace keeps you on the newline but fixes the word... I think this is actually in gaia.
Ok, clearing the mentor flag, as this has both gecko & gaia implications, so not a good starter bug :p
The patch is included in 952078. https://github.com/mozilla-b2g/gaia/pull/14851/files?w=1#diff-8702d22395c6a86f3d58c20db7020ce8R519
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.