[haiku-development] Re: Keymaps

> >There are multiple problems with this one :
> > * Possible conflicts with app shortcuts
> 
> They are no more conflicting than any combination that can be set in
> the Shortcuts Preflet. Have I missed something here?

System-wide shortcuts are (or should be) configurable, while shortcuts
in applications aren't.
Localization of shortcuts also makes this pretty messy, for example undo
is Alt+Z on Azerty and on Qwerty keyboards, so the key to press moves
around, while on a Cyrillic Keymap I expect it to be on the key labelled
Z on Qwerty (am I right ?).

This means application shortcuts should be keymap dependant in a
non-straightforward way.

The more system shortcuts you add, the more likely one of them will
clash with some application shortcut. Even worse if you use the command
key. This leaves very few shortcuts matching for the keymap switching
function :
 * Does not use command + something (likely used by some app)
 * Does not use letters (will move around when swapping keymaps)
 * Is simple enough, as it will get used often

... I think caps lock is actually a very good choice for this ?

Since the keymap switcher is not used by everyone, a lot of devs will be
tempted to use the shortcut for their own app, and it will then
conflict. Of course, you can make a bug report to these guys :)

> >Cmd+Space is intercepted by input_server as "change input method"
> >switch. This is made for our Japanese users. They don't change their
> >keymap, instead they change their input method, but result is more or
> >less the same, so maybe we could handle both at the same level.
> 
> I meant registering the input_server event for keymap operations and
> utilize it in the same way as Shortcuts Preflet do without
> hard-coding to some predefined combination.

Sure, hardcoding things in input server is bad anyway.
Well, I guess you know more than I do about switching keymaps, and
already encountered some issues with it. I'll let you decide :)

-- 
Adrien.

Other related posts: