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

MWAPI - Key, Character and Pointer Button Codes

Draft MDC Standard

3.3.13 Key, Character and Pointer Button Codes

Keyboard keys are identified by key codes (keycodes).

    keycode::=




grahic
commacode
functionkey
modifierkey
implementationvalue





    commacode::= COMMA
    modifierkey::=









ALT
ALTR
COMMAND
COMPOSE
COMPOSER
CTRL
CTRLR
OPTION
SHIFT
SHIFTR










    functionkey::=


































































BACKSP
BREAK
CAPSLOCK
DEL
DOWN
END
ENTER
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
FIND
HOME
INS
LEFT
NEXT
NUM0
NUM1
NUM2
NUM3
NUM4
NUM5
NUM6
NUM7
NUM8
NUM9
NUMDEC
NUMDEL
NUMDIV
NUMENTER
NUMLOCK
NUMMINUS
NUMMULT
NUMPLUS
PAGEDOWN
PAGEUP
PAUSE
PF1
PF2
PF3
PF4
RET
RIGHT
SCRLLOCK
SEL
TAB
UP



































































Key sequences, consisting of one or more keys, which result in the production of a character are identified by character codes (charcodes).

    charcode::= [ modifierkey + ] ...



graphic
commacode
functionkey
implementationvalue




A charcode never contains SHIFT (or SHIFTR) in combination with a graphic.

The comma character has two representations: the comma graphic and commacode. When an application assigns a value to an attribute that has as its domain a list of key codes (L keycode) or a list of character codes (L charcode), the commacode form must be used. When the MWAPI implementation sets the value of an attribute with a domain of keycode or charcode, the graphic form is used.

Pointer buttons are identified by pointer button codes (pbuttoncodes).

    pbuttoncode::= [ modifierkey + ] ...



PB1
PB2
PB3
implementationvalue




If a pointing device has a single button, it is identified as PB1. If a pointing device has two buttons, they are identified as PB1 and PB3. If a pointing device has three buttons, they are identified as PB1, PB2 and PB3. For any pointing device, PB1 indicates the primary button.

When the MWAPI implementation assigns to an attribute a charcode or pbuttoncode that contains multiple modifierkeys, the modifierkeys are listed in collating sequence. When an application assigns to an attribute a charcode or pbuttoncode that contains multiple modifierkeys, the modifierkeys can be listed in any sequence.

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-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.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 14-Nov-2023, 21:55:34.

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