fixed right control release

git-svn-id: trunk@2481 -
This commit is contained in:
mattias 2002-08-17 23:41:24 +00:00
parent 9cf72ed27f
commit ceae01f603
2 changed files with 7 additions and 4 deletions

View File

@ -262,7 +262,7 @@ Procedure InitializePalette(Pal : PGDIObject; Entries : PPALETTEENTRY; RGBCount
function GTKEventState2ShiftState(KeyState: Word): TShiftState;
function KeyToListCode(KeyCode, VirtKeyCode: Word; Extended: boolean): integer;
procedure GetGTKKeyInfo(const Event: PGDKEventKey; var KeyCode,VirtualKey: Word;
var SysKey, Extended, Toggle: Boolean);
var SysKey, Extended, Toggle: Boolean; var ShiftState: TShiftState);
procedure StoreCommonDialogSetup(ADialog: TCommonDialog);
procedure DestroyCommonDialogAddOns(ADialog: TCommonDialog);
function ObjectToGTKObject(const AObject: TObject): PGtkObject;

View File

@ -3766,19 +3766,19 @@ begin
VK_LCONTROL: nVirtKey := VK_CONTROL;
VK_LMENU: nVirtKey := VK_MENU;
end;
Result := KEYSTATE[FKeyStateList.IndexOf(Pointer(nVirtKey)) <> -1];
Result := KEYSTATE[FKeyStateList.IndexOf(Pointer(nVirtKey)) >=0];
// try extended keys
if Result = 0
then begin
nVirtKey := nVirtKey or KEYMAP_EXTENDED;
Result := KEYSTATE[FKeyStateList.IndexOf(Pointer(nVirtKey)) <> -1];
Result := KEYSTATE[FKeyStateList.IndexOf(Pointer(nVirtKey)) >=0];
end;
// add toggle
if Result <> 0 then
Result := Result or TOGGLESTATE[FKeyStateList.IndexOf(Pointer(
nVirtKey or KEYMAP_TOGGLE)) <> -1];
nVirtKey or KEYMAP_TOGGLE)) >=0];
//Assert(False, Format('Trace:[TgtkObject.GetKeyState] %d -> 0x%x', [nVirtKey, Result]));
end;
@ -8078,6 +8078,9 @@ end;
{ =============================================================================
$Log$
Revision 1.236 2003/04/26 10:45:34 mattias
fixed right control release
Revision 1.235 2003/04/16 22:11:35 mattias
fixed codetools Makefile, fixed default prop not found error