Wojtek Lerch <Wojtek_L@yahoo.ca> wrote:
WL > “Bill Caroselli” <email@example.com> wrote in message
WL > news:firstname.lastname@example.org…
I’m trying to get a hotkey handler added from code. I want to process the
Alt-L keychord. I have tried
PtAddHotkeyHandler( ABW_file_select_dlg, Pk_L, Pk_KM_Alt, 0, NULL,
WL > load_CB );
PtAddHotkeyHandler( ABW_file_select_dlg, Pk_L, Pk_KM_Alt, Pt_HOTKEY_SYM,
WL > NULL, load_CB );
But neither of these traps the Alt-L keycord. What am I doing wrong?
WL > Since combinations of Alt (or Ctrl, in case you care) with anything other
WL > than function and cursor keys don’t generate a key sym, you have to use the
WL > key cap. And the caps of letter keys are always lower case. In other
WL > words, you should use Pk_l rather than Pk_L, and not set the Pt_HOTKEY_SYM
WL > flag.
Thank you. Works great, less filling too!
I didn’t think I wanted Pt_HOTKEY_SYM but you get desprate to try anything
that might work. I just didn’t think I needed to use lower case letters.