The Listener Panel
The Listener panel contains a KEY property which contains the last entered key.
KEY
Part of: LISTENER
Reports the last key that the user has typed.
Syntax
GPROP "LISTENER "KEY
WHEN "LISTENER [KEY = "HOME] [PR [GOING HOME]]
Description
KEY reports the last key that the user has typed. The property is read-only. You can monitor keyboard input with the WHEN command.
Examples
GPROP “LISTENER “KEY Result: ENTER
VISIBLE
Part of: LISTENER
Reports the panel’s visibility
Syntax
GPROP "LISTENER "VISIBLE
Description
The VISIBLE property reports TRUE if the panel is part of the current view. If the panel is invisible because it is not part of the current view, it reports FALSE. The property is read-only.
Examples
GPROP “LISTENER “VISIBLE Result: TRUE