Closed
Bug 794555
Opened 13 years ago
Closed 13 years ago
Trouble binding the colon key (":")
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: rader, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120926 Firefox/15.0.1 SeaMonkey/2.12.1
Build ID: 20120926075449
Steps to reproduce:
When I add...
<key key="o" command="focusURLBar"/>
to platformNavigationBindings.xul, then the 'o' key changes focus to the URL bar.
I'd like to change this binding to ':' so I added...
<key key=":" command="focusURL>
<key key=";" modifiers="shift" command="focusURLBar"/>
<key keycode="VK_SEMICOLON" modifiers="shift" oncommand="focusNextFrame(event);"/>
I also tried many various notions of 47 and 0x3a without luck.
Actual results:
The ':' key does nothing.
Note: "xev" reports the ':' KeyRelease event as "keycode 47", "keysym 0x3a" and just "colon".
Expected results:
The ':' key should change focus to the URLBar
I also tried various key="47" and key="0x3a" and keycode="47" and keycode="0x3a" and they did not work either.
| Reporter | ||
Comment 1•13 years ago
|
||
Sorry, the first one should read...
<key key=":" command="focusURLBar"/>
Comment 2•13 years ago
|
||
Somebody told me that Masayuki-san is the go-to guy for keyboard questions.
| Reporter | ||
Comment 3•13 years ago
|
||
Masayuki-san, please: how does one bind ':' in e.g. platformNavigationBindings.xul??
What keyboard layout are you using? Using English keyboard layout, ':' is Shift+';'. Then, I think that <key key=":" modifiers="shift" command="focusURLBar"/> or <key key=":" modifiers="shift any" command="focusURLBar"/> should work as you expected.
Internally, the key attribute value is compared with charCode of keypress event. At this time, your examples cause checking modifier key state strictly.
<key key=":" modifiers="shift" command="focusURLBar"/> matches only if ":" is shifted position.
<key key=":" modifiers="shift any" command="focusURLBar"/> matches when ":" is inputted either with shift or without shift.
The latter is better for i18n.
| Reporter | ||
Comment 5•13 years ago
|
||
SUCCESS!
I tried a lot of crazy ideas, but not shift+colon!
[After all, the ':' is already shifted!?!]
Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•