User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
Hi Elliott,
I wanted Command-`, and Command-~ on menus.
If you are writing an "international" application, don't use such shortcuts,
because they are not reachable on all keyboards. For example, on a German
keyboard the tilde is somewhere a combination of Ctrl and Apple and the
backquote is only available with Shift.
I suggest you to stick with Ctrl/Alt/Apple/Shift combinations with letters,
space, numbers, cursor keys or function keys F1 to F12.
--
Best regards,
Thomas Singer
_____________
smartcvs.com
Elliott Hughes schrieb:
I wanted Command-`, and Command-~ on menus. I couldn't find a VK_TILDE,
so I used VK_BACK_QUOTE both times, with InputEvent.SHIFT_MASK on the
latter. This works fine as far as using the keyboard goes, but when my
Action is in a JMenu, Command-~ shows up as Shift-Command-`.
I also wanted Command-{ and Command-} like Safari. using VK_BRACELEFT
and VK_BRACERIGHT gives me the right rendering on a JMenu, but the keys
don't seem to work. using shifted VK_OPEN_BRACKET and VK_CLOSE_BRACKET
-- isn't KeyEvent a model of naming consistency? -- gives me the wrong
rendering in a JMenu (Command-Shift-[ and Command-Shift-]), but at least
the keystrokes work (and are what you'd expect: Command-{ and Command-}).
I assume this is a bug in Apple's LAF? Shifted keys that have two glyphs
painted on the key cap should appear Command-<upper glyph>, right?
I'm confused by VK_BRACELEFT and VK_BRACERIGHT, mind. Either Sun have
seen a keyboard with separate unshifted {, or those constants shouldn't
exist.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden