Keyboard shortcuts Keyboard shortcuts and WinDom Frame windows
Programming guideline of WinDom

Keyboard shortcuts structure

Menus

Each keyboard shortcut appears in the menu as the last word of the item. The word must have a space character at the beginning and the end of the word. For example : é" Quitter ^Q ".

The keyboard shortcut can have the following first character (after the space character):

^ (0x5E) meanning Control
? (0x07) meanning Alternate
? (0x01) meanning Left Shift or Right Shift

These characters are optional.

The next character may a alphabetical character (a..z) or a special sequence representing a special key. These sequences are :

ESC The Escape key
UNDO the Undo key
HELP the Help key
INSERT the Insert key
HOME the Home key
TAB the Tab key
BACK the Backspace key
DEL ! the Delete key
F1 ... F10 the function keys 1, 2 ...

Examples

" Information I "
" Copy ^C "
" Center F1 "
" Help HELP "
" Delete ^DEL "
" Infos ? "

Formulars

Only the extended object 18 (button) can have a keyboard shortcut. If we insert a '[' character behind a character, this character will appear as underlined and the object will be selected by typing the sequence Alternate and the underlined character.

Example

text button: "[Save configuration"
appear as: "Sve configuration"
keyboard shortcut: alternate S

Others objects can be selected from the keyboard:

RETURN ou ENTER
selects the DEFAULT object,

UNDO
selects the object with a FLAGS11 ob_flags or the object with a 31-extended type,

HELP
selects the 21-extended type object.

Standard Editable fields (EDITABLE objects)

WinDom does not integrate high custom functions such as copy/paste. Nowadays, moderns AES (MagiC, Naes) integrates these functions. If you does not use MagiC or Naes, you can use Let's Them Fly, a TSR program compatible with all TOS versions. The functions offers by these programs are :

control right arrow, left arrow
jump to the next, previous word,

control up arrow, down arrow
acces the historic (only Let's Them Fly),

shift right arrow, left arrow
jump at the begining, the end of the field,

shift insert
displays an ascii table (only Let's Them Fly),

shift undo
recalls the previous field (only Let's Them Fly),

control C
copies in the GEM clipboard,

control V
paste the GEM clipboard,

escape
clear the field.

Extended Editable fields (XEDIT objects)

WinDom provides a special editable object (XEDIT) allowing to type a text without lenght limitation. Some special control keys can be used within these objects :

control right arrow, left arrow
jump to the next, previous word,

shift right arrow, left arrow
jump at the begining, the end of the field,

control C
copy in the GEM clipboard,

control V
paste the GEM clipboard,

escape
clear the field,

control K
kill the line at the cursor position.