On Mon, Apr 27, 2009 at 6:58 AM, Tristam MacDonald <[email protected]> wrote: > Is there a good rationale for MOD_COMMAND being different from MOD_WINDOWS, > and MOD_OPTION being different from MOD_ALT? > As far as I know, they can never exist on the same keyboard: option is just > the mac name for alt, they even print alt on the key these days, and if I > plug a PC keyboard into my Mac, alt is key as alt (option) and windows is > mapped to command. > Having separate symbols for these in Pyglet seems a bit of a hassle - all my > software has a block of code that aliases the names to match...
Well, one reason is that semantically they do different things. For example, Alt is used in Windows for using the keyboard to focus between widgets, whereas Option on Mac is used as a modifier in conjunction with Command. Similarly, the Windows key is reserved for the operating system on Windows, but the Command key on Mac is used by both applications and the OS. Note also the existence of MOD_ACCEL, which is Ctrl on Windows and Command on Mac, for smoothing the differences between the platforms. Alex. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
