652
Appendix A: System Routines — Keyboard
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
QModeKey
Declaration:
BOOL
QModeKey
(WORD
Key
)
Category(ies):
Keyboard
Description:
Return TRUE if
Key
is a mode key:
®
,
O
,
¥
-
O
,
2
-
O
,
3
,
°
,
¯
,
K
, or any of the built-in app keys:
"
,
%
, . . . .
Inputs:
Key
— Key value.
Outputs:
TRUE or FALSE.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
On the TI
-
92 Plus, the built-in app keys are
¥
-Q, W, E, R, T, Y. On the
TI
-
89 they are
¥
-
ƒ
. . .
‡
and
"
.
See Also: QSysKey
Example:
/* Mode keys exit dialog boxes by using code like the following */
if (QModeKey(Key)) {
GKeyPush(Key); /* repush key on keyboard buffer */
ER_throwVar( KB_ESC | 0x8000 ); /* exit edit buffer code and eventually dialog box */
}