[Gambas-user] Detecting Ctrl+another key combinations
richard terry
rterry at ...1822...
Thu Jan 3 22:12:52 CET 2008
This example is given in the documentation for detecting a control key:
PUBLIC SUB Form_KeyPress()
' Control KeyPress event will often pass through to this Form event.
DIM CntrlDown AS Boolean
TRY CntrlDown = Key.Control
CntrlDown = IIf( ERROR , FALSE, CntrlDown)
IF CntrlDown THEN
ME.Text = CString(Time) & " True: Control key is being held down"
ELSE
ME.Text = CString(Time) & " False: Control key was not held down"
ENDIF
END
How does one detect say Ctrl_A or say Shift + other key combinations etc
Thanks in anticipation.
Richard
More information about the User
mailing list