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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: janjongboom, Assigned: janjongboom)

References

Details

Attachments

(1 file)

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
Attached file 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.
Whiteboard: [mentor=janjongboom]
Ok, clearing the mentor flag, as this has both gecko & gaia implications, so not a good starter bug :p
Whiteboard: [mentor=janjongboom]
Blocks: 952078
Depends on: 952080
No longer blocks: 952078
Depends on: 952078
Depends on: 952086
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.

Attachment

General

Created:
Updated:
Size: