Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-01

F1 on Linux I got 255

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

Dear all,

lazarus 1.4.4 fpc 2.6.4
Under linux VirtualBox if I launch my application and press F1 I got key =255 instead key = 112

procedure TfrmMainMenu.FormKeyDown(Sender: TObject; var Key: Word;
   Shift: TShiftState);
begin
   // check for F1
   if (Key = VK_F1) then
   begin
	//dosomething
   end;
end;

why?

Lazarus Ide seems to properly detect F1. My application not.

Any hint?
Andrea Mauri

Reply by email

Andrea Mauri
to Andrea Mauri

If I press
a
I got 141 that is
C octal escaped UTF-8: \141
as reported in character map in ubuntu.

any hint to get F1 when it is pressed?

Il 29/01/2016 12:04, Andrea Mauri ha scritto:

Show quoted text 22 lines
Dear all, lazarus 1.4.4 fpc 2.6.4 Under linux VirtualBox if I launch my application and press F1 I got key =255 instead key = 112 procedure TfrmMainMenu.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin // check for F1 if (Key = VK_F1) then begin //dosomething end; end; why? Lazarus Ide seems to properly detect F1. My application not. Any hint? Andrea Mauri

Reply by email