Home |
Windowing Interface Terminology Keyboard Input Methods |
Keyboard Input MethodsKeyboard input arrives in the form of PM_KEY messages, meaning that the Message.wType field == PM_KEY. The actual key value is passed in the Mesg.iData field, and the key flags such as shift key state, control key state, etc., are passed in the Mesg.lData parameter. As described above, when a window is added to PegPresentationManager, the first client-area child object of the window gains input focus. The end user can fully navigate through a PEG application by sending a very small number of PM_KEY messages to PEG. The list below describes the key values that PEG objects monitor to allow the user to navigate through the graphical interface. PK_TABThe focus is moved to the next child of the current window. If the current child is the last child, focus wraps back to the first child of the current window. If the Shift key is pressed (i.e. the KF_SHIFT flag is set in the PM_KEY message lData member), the tab direction is reversed. <Ctrl> BK_TABCycles the focus through top level windows. F1Moves focus to the first menu item of the menu bar of the current window. PK_LNUP, PK_LNDN, PK_LEFT, PK_RIGHTThe arrow keys move focus from sibling to sibling, and are also used to navigate through PegMenu items. PK_CRCarriage return is used to select the item which has focus. PK_ESCEscape closes an open menu or cancels a PegString edit operation. <Ctrl> F4Closes the current window.
|