diff options
author | rowanbeentje <rowan@beent.je> | 2009-09-14 08:12:56 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-09-14 08:12:56 +0000 |
commit | 1eaae5b6a1308854927c1d43c3abcc8e5cb656f9 (patch) | |
tree | 72dd5d76e6985af457103ba43f18370147f0f07b /Source | |
parent | f85e71af7997af33ca10ee581c20c7c2264c6287 (diff) | |
download | sequelpro-1eaae5b6a1308854927c1d43c3abcc8e5cb656f9.tar.gz sequelpro-1eaae5b6a1308854927c1d43c3abcc8e5cb656f9.tar.bz2 sequelpro-1eaae5b6a1308854927c1d43c3abcc8e5cb656f9.zip |
- When a SPTooltip is showing, ensure that events are always passed on to the app - this fixes keyboard shortcuts not working when a tooltip is visible
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTooltip.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m index 0c84061b..cf047aad 100644 --- a/Source/SPTooltip.m +++ b/Source/SPTooltip.m @@ -385,7 +385,7 @@ static float slow_in_out (float t) NSWindow* keyWindow = [[NSApp keyWindow] retain]; BOOL didAcceptMouseMovedEvents = [keyWindow acceptsMouseMovedEvents]; [keyWindow setAcceptsMouseMovedEvents:YES]; - NSEvent* event; + NSEvent* event = nil; int eventType; while(event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES]) { @@ -409,6 +409,9 @@ static float slow_in_out (float t) [keyWindow release]; [self orderOut:self]; + + // If we still have an event, pass it on to the app to ensure all actions are performed + if (event) [NSApp sendEvent:event]; } // ============= |