mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 03:28:40 +02:00
+ Now actually demonstrates GetKeyEventCode
This commit is contained in:
parent
29327cbe69
commit
6ff1f9d092
@ -16,7 +16,10 @@ begin
|
||||
If (GetKeyEventFlags(K)<>KbfnKey) then
|
||||
Writeln('Not a function key')
|
||||
else
|
||||
Writeln('Got key : ',KeyEventToString(K));
|
||||
begin
|
||||
Write('Got key (',GetKeyEventCode(K));
|
||||
Writeln(') : ',KeyEventToString(K));
|
||||
end;
|
||||
Until (GetKeyEventChar(K)='q');
|
||||
DoneKeyboard;
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user