* Improvement of r20767 #7077d774a2. Don't use AltGr KCInfo flag when using own shiftstate. This flag might have been set wrong when altkey isn't detected/recognized

git-svn-id: trunk@20771 -
This commit is contained in:
marc 2009-06-30 23:57:02 +00:00
parent c6a5b323e3
commit 3f9fe8af18

View File

@ -2297,6 +2297,10 @@ begin
if (KCInfo.Flags and KCINFO_FLAG_EXT) <> 0
then Flags := KF_EXTENDED;
{$ifdef UseOwnShiftState}
SysKey := (ssAlt in ShiftState)
or (ShiftState * [ssShift, ssAltGr] = [ssShift, ssAltGr]);
{$else}
if (KCInfo.Flags and KCINFO_FLAG_ALTGR) = 0
then begin
// VKey is without ALT so Alt is syskey
@ -2306,6 +2310,7 @@ begin
// VKey is with ALT so SHIFT Alt is syskey
SysKey := ShiftState * [ssShift, ssAltGr] = [ssShift, ssAltGr]
end;
{$endif}
if SysKey
then Flags := Flags or KF_ALTDOWN;