Closed
Bug 16844
Opened 25 years ago
Closed 25 years ago
alt keys insert a space
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
VERIFIED
FIXED
M11
People
(Reporter: akkzilla, Assigned: akkzilla)
Details
Attachments
(1 file)
446 bytes,
patch
|
Details | Diff | Splinter Review |
The (vaporware :-) key event spec says that control, shift, alt and meta keys generate a KeyPress event just like any other key. But the editor happily inserts these key events which have a key code and no char code (at least, it does for the alt key), rendering the key as a space. I'm attaching a patch that fixes the problem. However, the fact that no one on Windows or Mac has noticed this makes me wonder whether those platforms can actually generate this event which the spec calls for. Kathy, Saari, Frank, can you check Mac and Windows and find out? Meanwhile, Kathy, can you please try the attached patch, and code review it?
Assignee | ||
Updated•25 years ago
|
Severity: normal → critical
Status: NEW → ASSIGNED
Target Milestone: M11
Assignee | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
this fixes the problem for me.
Comment 3•25 years ago
|
||
This patch is incomplete; it does not look for the Meta key. If you add that check I approve. At some point I was planning to add inside an #ifdef DEBUG block an assert if we ever are trying to insert a charcode of 0. This should help us track down problems a little quicker. Btw, Mac and Windows don't adhere to the modifier-only part of the spec yet. Frank and I decided that it wasn't critical enough to hold the branch landing since no one needs that functionality in the current product.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•25 years ago
|
||
Fixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•