Closed Bug 16844 Opened 25 years ago Closed 25 years ago

alt keys insert a space

Categories

(Core :: DOM: Editor, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: akkzilla, Assigned: akkzilla)

Details

Attachments

(1 file)

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?
Severity: normal → critical
Status: NEW → ASSIGNED
Target Milestone: M11
this fixes the problem for me.
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.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed.
Status: RESOLVED → VERIFIED
verified in 10/21 build.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: