Accelerators for Alt-Right and Alt-Left don't work on Mac

Hello,

I set accelerators on a frame for Alt-Right and Alt-Left. They work on Windows and GTK, but nothing happens on Mac. Are these kind of shortcuts disallowed on Mac or something?

Ram.

I don't know if they are disallowed, but alt+arrow keys are normally used to go forward/back by word so maybe that is being caught before accelerators are checked. On the other hand you usually only see the Alt key used for accelerators or hotkeys when used in combination with other modifiers, and when it is used by itself with normal keys then it is used to enter non-ascii characters.

···

On 4/28/11 12:17 PM, cool-RR wrote:

Hello,

I set accelerators on a frame for Alt-Right and Alt-Left. They work on
Windows and GTK, but nothing happens on Mac. Are these kind of shortcuts
disallowed on Mac or something?

--
Robin Dunn
Software Craftsman

I discovered that the appropriate shortcut keys on mac would actually be Cmd-Right and Cmd-Left, and also Cmd-[ and Cmd-]. Anyway, I got it to work, but I seem to have discovered something weird. It seems that Windows and Linux, accelerators are able to trigger both EVT_BUTTON and EVT_MENU handlers, while on Mac they trigger only EVT_MENU handlers. Is this known? Is this documented?

Ram.

···

On Fri, Apr 29, 2011 at 10:16 AM, Robin Dunn robin@alldunn.com wrote:

On 4/28/11 12:17 PM, cool-RR wrote:

Hello,

I set accelerators on a frame for Alt-Right and Alt-Left. They work on

Windows and GTK, but nothing happens on Mac. Are these kind of shortcuts

disallowed on Mac or something?

I don’t know if they are disallowed, but alt+arrow keys are normally used to go forward/back by word so maybe that is being caught before accelerators are checked. On the other hand you usually only see the Alt key used for accelerators or hotkeys when used in combination with other modifiers, and when it is used by itself with normal keys then it is used to enter non-ascii characters.

Robin Dunn