Closed Bug 11004 Opened 26 years ago Closed 26 years ago

Can't use AltGr key to write in URL.

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 13016

People

(Reporter: bratell, Assigned: hyatt)

Details

With the new menus capturing the AltGr key presses it's impossible to write some letters with a swedish (and I guess many others) keyboard. For instance '~', '$' and '€' are hidden under AltGr. Especially ~ is difficult to live without in a browser. When I press AltGr and press another key, nothing happens. When I let up the AltGr key the menu is activated. System: Windows NT SP5, swedish keyboard.
This is with a CVS build dated 07/31/99 07:00 by the way.
Component: Browser-General → XP Toolkit/Widgets
The relevant code is in nsMenuBarListener::KeyDown() I think. Some way AltGr should be separeted from the ordinary Alt. I don't know whick keycodes they generate but I guess it shouldn't be too difficult.
Adding Erik to the cc list. Erik, what's the right way for me to check for the ALT key press in an XP way? I suspect we may need to have a method that I can call on nsIWidget or something that can give me the correct code of the key to check for (then some platforms can just disable the behavior, and you could put any necessary internationalization code behind such a function call)... does that sound reasonable, Erik?
What happens if the Alt KeyEvent isn't consumed by KeyDown()? Would that solve it?
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
This works now. I guess this has been fixed by the change to nsMenuBarListener. I mark the bug fixed.
Status: RESOLVED → VERIFIED
QA Contact: leger → beppe
Marking Verified.
Sorry, I was on vacation. Sounds like this one got resolved. If not, let me know how I can help!
Status: VERIFIED → REOPENED
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: FIXED → DUPLICATE
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets → Event Handling
QA Contact: beppe → cpratt
*** This bug has been marked as a duplicate of 13016 ***
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.