Closed Bug 385292 Opened 16 years ago Closed 16 years ago
Enter (to submit form) appears to delete the selection
Steps to reproduce: 1. Load http://www.google.com/ 2. Type "foobar". 3. Select "bar". 4. Press Enter. Result: "bar" disappears, leaving "foo", and the form is submitted (as foobar, luckily).
Looks like this works on Win32, Josh, could this be related to any Mac widget changes or something like that?
Assignee: nobody → joshmoz
Component: HTML: Form Submission → Widget
Component: Widget → Widget: Cocoa
Flags: blocking1.9? → blocking1.9+
QA Contact: form-submission → cocoa
Can we find a regression window?
Masayuki - it looks like we're sending the enter as a text entry command instead of bailing after gecko handles the key down or press event to submit the form. I think you'd know more about fixing this than me, can you take a look?
Status: NEW → ASSIGNED
This patch also fixes bug 396808. The editor event listener uses keyCode of key press event for filtering. But cocoa widget is not setting it at generating the events.
Comment on attachment 283824 [details] [diff] [review] Patch rv1.0 + NS_WARNING("GetGeckoKeyCodeFromChar is failed."); You can either not have the "is" there or change it to "has". Thanks for doing this!
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
This appears to have caused bug 399740.
Depends on: 399740
This has also caused bug 401425.
You need to log in before you can comment on or make changes to this bug.