mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 20:09:25 +02:00
* skip e0 scancodes in certain cases. bug #8978
git-svn-id: trunk@11566 -
This commit is contained in:
parent
4aee6550d8
commit
89ae7d0b25
@ -1058,6 +1058,12 @@ begin
|
||||
key:=Keyboard.GetKeyEvent;
|
||||
keycode:=Keyboard.GetKeyEventCode(key);
|
||||
keyshift:=KeyBoard.GetKeyEventShiftState(key);
|
||||
// some kbds still honour old XT E0 prefix. (org IBM ps/2, win98?) bug #8978
|
||||
if (keycode and $FF = $E0) and
|
||||
(byte(keycode shr 8) in
|
||||
[$1C,$1D,$2A,$35..$38,$46..$49,$4b,$4d,$4f,$50..$53]) Then
|
||||
keycode := keycode and $FF00;
|
||||
|
||||
{ fixup shift-keys }
|
||||
if keyshift and kbShift<>0 then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user