blob: 9963ad6d146074c1f129f0ff80b2b8460c0c9aa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Program Example8;
{ Program to demonstrate the FunctionKeyName function. }
Uses keyboard;
Var
K : TkeyEvent;
begin
InitKeyboard;
Writeln('Press function keys, press "q" to end.');
Repeat
K:=GetKeyEvent;
K:=TranslateKeyEvent(K);
If IsFunctionKey(k) then
begin
Write('Got function key : ');
Writeln(FunctionKeyName(TkeyRecord(K).KeyCode));
end;
Until (GetKeyEventChar(K)='q');
DoneKeyboard;
end.
|