Re: Shortcut handling in different keyboard layouts
Re: Shortcut handling in different keyboard layouts
- Subject: Re: Shortcut handling in different keyboard layouts
- From: "Rimas M." <email@hidden>
- Date: Wed, 1 Apr 2009 19:42:28 +0300
> Matching on keycode will almost always confuse your users.
>
> There are at least 9 different Cyrillic keyboard layouts supported by OS X.
> If you write code that matches the virtual keycode for 2nd rank 11th key, it
> will match "з" (ze) for half or those layouts and "п" (pe) for the other
> half. Your users are not going to count off ranks and keys, they will be
> looking for a Cyrillic character. Half of them will hit a different key from
> what you're expecting.
>
> If Cyrillic keyboards are likely to be a part of your user base, you would
> probably be better advised to set up a mapping table for Cyrillic
> characters. Either map the Cyrillic alphabet to the Latin alphabet and from
> thence to your keyboard commands or, better still, map the Cyrillic alphabet
> directly to the keyboard-triggered commands.
>
> As pointed out earlier, the OS handles this automagically for Cmd-key
> combinations. You can see this for yourself by turning on a couple of
> relevant keyboard layouts in System Preferences->International->Input Menu,
> selecting one of them and turning on the Keyboard Viewer (at the bottom of
> the Input Menu). While the Command key is depressed, the layout reverts to
> US Sholes.
>
> I have used a few applications that implemented keyboard shortcuts beyond
> Command-key combinations. Those that implemented keyboard-command mappings
> based on an assumed physical location of characters have always left
> international users confused and disatisfied.
>
> My EURO 0.02 -- Peter
Thanks for your 0.02 Peter :)
Currently I am a bit confused. I am not sure which way is best for
users. The best example for I am talking about is Photoshop tools
switching via keyboard. I doubt it uses (or maybe?) Cyrillic
characters mapping. Because if you want to switch to Pencil tool, you
need to press "P" labeled keyboard button in US layout. Even more, you
must press the same button on RU layout. But that button produces "з".
I am not talking about command-key -> actions. I want to implement key
-> action in the correct way. I am quite sure, that such company as
Adobe and long-time project as Photoshop would do that in right way.
Maybe I am wrong. For this reason I am writing here.
Regards,
Rimas M.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden