class PtHotkeyCallback { data; // string event_f; // string flags; // flag key_mods; // unsigned long key_sym_cap; // unsigned short widget; // PtWidget }
This class holds information from the Pt_CB_HOTKEY callback, which is generated when a "hot key" assigned to the widget is pressed.
Also see Pt_CB_HOTKEY in the PtWidget section of the Photon documentation.
User-defined data associated with the callback.
A string identifying the assigned function to call. If no function has been assigned, the value here will be nil, and the Pt_CB_ACTIVATE callback is generated.
This instance variable may have one or more of the following values:
Constant | Description |
---|---|
Pt_HOTKEY_SYM | Causes the key_cap_sym variable to be interpreted as a key sym, rather than a key cap. |
Pt_HOTKEY_IGNORE_MODS | Causes the key_mods variable to be ignored, allowing upper- and lowercase letters to be accepted as hot keys. |
The active key modifiers for this keystroke.
The key cap for this keystroke.
The PtWidget that attached the callback.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.