gtk2: don't emulate eaten keys if key handler was stopped (fixes issue #0014481)

git-svn-id: trunk@21545 -
This commit is contained in:
paul 2009-09-03 01:27:07 +00:00
parent be1d125c88
commit fa1b49813e

View File

@ -2161,7 +2161,8 @@ var
begin
// some widgets eats keys, but do not do anything useful for the LCL
// emulate the keys
if not ABeforeEvent then exit;
if not ABeforeEvent then Exit;
if EventStopped then Exit;
//DebugLn(['EmulateEatenKeys TargetWidget=',dbghex(PtrInt(TargetWidget))]);
//DebugLn(['EmulateEatenKeys ',GetWidgetDebugReport(TargetWidget),' gdk_event_get_type(AEvent)=',gdk_event_get_type(AEvent),' GDK_KEY_PRESS=',GDK_KEY_PRESS,' VKey=',VKey]);