☜ | MWAPI - Keyboard Events1995 Version of ANSI (Equivalent to Current ISO Version) of Standard | ☞ |
Keyboard events (i.e. data key down, data key up, function key down, and function key up events) occur when the user presses or releases one or more keyboard keys.
If focus is on a gadget for which a keyboard event can occur, then the keyboard event occurs for that gadget. Otherwise, if focus is on a window for which a keyboard event can occur, then the keyboard event occurs for that window.
No behavior is defined for key sequences which are not mapped to key codes.
A data key down event, indicated by an etype value equal to "KEYDOWN", occurs when the user presses a key sequence for a data key code.
A data key up event, indicated by an etype value equal to "KEYUP", occurs when the user releases a key sequence for a data key code.
A function key down event, indicated by an etype value equal to "FKEYDOWN", occurs when the user presses a key sequence for a function key code.
A function key up event, indicated by an etype value equal to "FKEYUP", occurs when the user releases a key sequence for a function key code.
A keyboard event does not occur if (a) the key code represents an accelerator or has a special meaning for the underlying windowing platform or (b) the FILTERIN especattribute is present for the event and the keycode associated with the event is not one of the keycodes present in the value of that FILTERIN especattribute.
For gadgets that accept text input, function key codes are never included in the value of the gadget’s VALUE elattribute. If data key up or data key down events are enabled for a gadget, then when a keyboard event occurs the gadget’s VALUE elattribute is not modified by the underlying windowing platform or the MWAPI. The application can modify the VALUE elattribute, by assigning a value explicitly.
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
This page most recently updated on 14-Nov-2023, 22:11:37.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)