RadioButto

RadioButtoIsAccel

Test whether a character key matches the caption accelerator

Syntax

Signature
xBool           RadioButtoIsAccel( RadioButto *radioButto, int key );

Arguments

radioButto the radio button.

key an input key code. Use KEY_UNICODE() from xdev-wtui-inkey.h to supply a Unicode code point as a key code.

Return value

T if key matches the accelerator, or F if there is no match or the object is NULL.

Description

The accelerator is the character after the first `&` in the caption. A missing marker or a marker at the end gives no accelerator. The function converts the key with `GtKeyChar()` and compares the characters without regard to case while preserving accents. It checks the key independently of focus and selection.

See also