mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 20:33:13 +02:00
Amiga: Fix for unable to type in FV applications for Amiga-systems
This commit is contained in:
parent
b27335e8a5
commit
9f22623459
@ -1289,10 +1289,8 @@ begin
|
||||
end;
|
||||
Event.What:=evKeyDown;
|
||||
Event.KeyCode:=keycode;
|
||||
{$ifdef ENDIAN_LITTLE}
|
||||
Event.CharCode:=chr(keycode and $ff);
|
||||
Event.ScanCode:=keycode shr 8;
|
||||
{$endif ENDIAN_LITTLE}
|
||||
Event.UnicodeChar:=key.UnicodeChar;
|
||||
Event.KeyShift:=ConvertEnhancedToLegacyShiftState(key.ShiftState);
|
||||
end
|
||||
|
@ -470,7 +470,7 @@ begin
|
||||
KeyCode := Ord(Buff[0]);
|
||||
KeySet^.KeyCode := Ord(Buff[0]); // if maprawkey does not work it still is 0
|
||||
KeySet^.ShiftState := LastShiftState; // shift state set before the case
|
||||
KeySet^.Flags := 0;
|
||||
KeySet^.Flags := kbPhys;
|
||||
if keyup then // we do not need key up events up to now
|
||||
begin
|
||||
KeySet^.Flags := KeySet^.Flags or kbReleased; // kbReleased does work but make strange effects
|
||||
|
Loading…
Reference in New Issue
Block a user