lcl: gtk2: debug altgr

git-svn-id: trunk@57838 -
This commit is contained in:
mattias 2018-05-08 08:31:28 +00:00
parent 050d765ab5
commit 333a8e95d4

View File

@ -2362,7 +2362,7 @@ begin
if AHandleDown then
begin
{$IFDEF VerboseKeyboard}
DebugLn('[HandleGTKKeyUpDown] GDK_KEY_PRESS VKey=',dbgs(VKey),' SysKey=',dbgs(SysKey));
DebugLn('[HandleGTKKeyUpDown] GDK_KEY_PRESS VKey=',dbgs(VKey),' SysKey=',dbgs(SysKey),' Shift=',dbgs(Shift),' KCInfo=Key1=',KCInfo.VKey1,',Key2=',KCInfo.VKey2,',Flags=',hexstr(KCInfo.Flags,2));
{$ENDIF}
Msg.CharCode := VKey;
@ -2418,19 +2418,19 @@ begin
if ABeforeEvent then
begin
// try to get the UTF8 representation of the key
if im_context_string <> '' then
begin
Character := UTF8Copy(im_context_string,1,1);
im_context_string:='';// clear, to avoid sending again
end
if im_context_string <> '' then
begin
Character := UTF8Copy(im_context_string,1,1);
im_context_string:='';// clear, to avoid sending again
end
else
begin
KeyPressesChar := GetSpecialChar;
if KeyPressesChar <> #0 then
Character := KeyPressesChar
else
begin
KeyPressesChar := GetSpecialChar;
if KeyPressesChar <> #0 then
Character := KeyPressesChar
else
Character := '';
end;
Character := '';
end;
{$IFDEF VerboseKeyboard}
debugln('[HandleGTKKeyUpDown] GDK_KEY_PRESS UTF8="',DbgStr(Character),'"',