Closed
Bug 951275
Opened 11 years ago
Closed 11 years ago
[Keyboard] Enter should just enter and not preventDefault if an autocorrect can be made
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: janjongboom, Assigned: janjongboom)
References
Details
Attachments
(1 file)
353 bytes,
text/plain
|
Details |
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 | ||
Updated•11 years ago
|
Assignee: nobody → janjongboom
Assignee | ||
Comment 1•11 years ago
|
||
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.
Assignee | ||
Updated•11 years ago
|
Whiteboard: [mentor=janjongboom]
Assignee | ||
Comment 2•11 years ago
|
||
Ok, clearing the mentor flag, as this has both gecko & gaia implications, so not a good starter bug :p
Whiteboard: [mentor=janjongboom]
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 3•11 years ago
|
||
The patch is included in 952078. https://github.com/mozilla-b2g/gaia/pull/14851/files?w=1#diff-8702d22395c6a86f3d58c20db7020ce8R519
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•