Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples
Left Hand Pointer

MWAPI - Keyboard Events

1995 Version of ANSI (Equivalent to Current ISO Version) of Standard

Right Hand Pointer

8.1.3 Keyboard Events

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.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2018 MUMPS Development Committee;
Copyright © Examples: 1995-2018 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2018 Ed de Moel.

This page most recently updated on 21-Mar-2004, 11:09:40 .

For comments, contact Ed de Moel (demoel@jacquardsystems.com)