mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 03:17:22 +01:00
lcl: gtk2: debug altgr
git-svn-id: trunk@57838 -
This commit is contained in:
parent
050d765ab5
commit
333a8e95d4
@ -2362,7 +2362,7 @@ begin
|
|||||||
if AHandleDown then
|
if AHandleDown then
|
||||||
begin
|
begin
|
||||||
{$IFDEF VerboseKeyboard}
|
{$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}
|
{$ENDIF}
|
||||||
|
|
||||||
Msg.CharCode := VKey;
|
Msg.CharCode := VKey;
|
||||||
@ -2418,19 +2418,19 @@ begin
|
|||||||
if ABeforeEvent then
|
if ABeforeEvent then
|
||||||
begin
|
begin
|
||||||
// try to get the UTF8 representation of the key
|
// try to get the UTF8 representation of the key
|
||||||
if im_context_string <> '' then
|
if im_context_string <> '' then
|
||||||
begin
|
begin
|
||||||
Character := UTF8Copy(im_context_string,1,1);
|
Character := UTF8Copy(im_context_string,1,1);
|
||||||
im_context_string:='';// clear, to avoid sending again
|
im_context_string:='';// clear, to avoid sending again
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
KeyPressesChar := GetSpecialChar;
|
||||||
|
if KeyPressesChar <> #0 then
|
||||||
|
Character := KeyPressesChar
|
||||||
else
|
else
|
||||||
begin
|
Character := '';
|
||||||
KeyPressesChar := GetSpecialChar;
|
end;
|
||||||
if KeyPressesChar <> #0 then
|
|
||||||
Character := KeyPressesChar
|
|
||||||
else
|
|
||||||
Character := '';
|
|
||||||
end;
|
|
||||||
|
|
||||||
{$IFDEF VerboseKeyboard}
|
{$IFDEF VerboseKeyboard}
|
||||||
debugln('[HandleGTKKeyUpDown] GDK_KEY_PRESS UTF8="',DbgStr(Character),'"',
|
debugln('[HandleGTKKeyUpDown] GDK_KEY_PRESS UTF8="',DbgStr(Character),'"',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user