[interfacekit] Re: [Open-beos-cvs]CVS: ShowImageWindow.cpp,1.14,1.15
- From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
- To: "OpenBeOS Interface Kit" <interfacekit@xxxxxxxxxxxxx>
- Date: Sat, 15 Nov 2003 18:00:10 +0100 CET
Michael Wilber <mwilber@xxxxxxxxxxxxxxxxxxxxx> wrote:
> + AddItemMenu(pmenu, "Rotate Clockwise", MSG_ROTATE_CLOCKWISE, ']',
> 0, > 'W', true);
> + AddItemMenu(pmenu, "Rotate Anticlockwise", MSG_ROTATE_ACLKWISE,
> '[', 0, > 'W', true);
BTW does anyone have a good idea how to solve the shortcut issue?
In BeOS, if you have another (for example the German) keymap activated,
these shortcuts (and others) don't work as expected, since you'd have
to press another modifier to get that character from your keyboard.
One possibility would be to ignore the modifier in this case, and let
the generated character "remove" all the modifiers needed to create it.
This would have the downside that it might not a good idea to use
special modifiers at all as shortcuts (even the Shift key is
problematic) for everything that is not just "a-z".
Another possibility would be to automatically change the shortcut to
one that the keymap can create. That could have two downsides: 1) the
chosen key might be unusual at that position and is often combined with
different functionality, 2) the chosen key could collide with other
keys that are defined later in that application (i.e. the context has
changed).
Any other ideas? And maybe a solution? :-)
Bye,
Axel.
Other related posts:
- » [interfacekit] Re: [Open-beos-cvs]CVS: ShowImageWindow.cpp,1.14,1.15