Syntax
GtInfo( GTI_INKEYFILTER, [bFilter] ) --> bPreviousArguments
GTI_INKEYFILTER
The selector, from gtinfo.ch.
bFilter
A block that receives a key code and returns the key code to deliver. NIL removes the block.
Return value
The block set before the call, or NIL.
Description
Inkey() passes every key read from the keyboard to the block and returns its result instead. A result of 0 drops the key. Use it to translate or block keys in the whole program.
Notes
Handled by the terminal layer, so it works with every GT driver.
Header
gtinfo.ch
Output