mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:39:18 +02:00
Gtk2: Add option to disable "KeyEventWasHandledByLCL" => allow checking if new Gt2-IM code can deal with this. Define WITH_GTK2_IM for IM / Define WITHOUT_GTK_DOUBLEKEYPRESS_CHECK to disable current check
git-svn-id: trunk@65176 -
This commit is contained in:
parent
176f0b3310
commit
67dbe4986f
@ -2238,9 +2238,11 @@ begin
|
||||
' Widget=',GetWidgetClassName(AWidget),
|
||||
' Before=',ABeforeEvent,' Down=',AHandleDown,' HandledByLCL=',HandledByLCL<>nil]);
|
||||
{$ENDIF}
|
||||
|
||||
|
||||
// handle every key event only once
|
||||
{$IFnDEF WITHOUT_GTK_DOUBLEKEYPRESS_CHECK}
|
||||
if EventHandledByLCL<>nil then exit;
|
||||
{$ENDIF}
|
||||
|
||||
while (not GtkWidgetIsA(AWidget, gtk_window_get_type)) and (AWidget^.parent <> nil) do
|
||||
AWidget := AWidget^.parent;
|
||||
|
Loading…
Reference in New Issue
Block a user