Uncomment the custom event handling code

This commit is contained in:
Corey Johnson
2012-03-01 15:45:49 -08:00
parent e874512284
commit 404ca89767

View File

@@ -38,15 +38,15 @@
- (void)sendEvent:(NSEvent*)event {
CefScopedSendingEvent sendingEventScoper;
// if ([[self mainMenu] performKeyEquivalent:event]) return;
//
// if (_clientHandler && ![self keyWindow] && [event type] == NSKeyDown) {
// [_hiddenWindow makeKeyAndOrderFront:self];
// [_hiddenWindow sendEvent:event];
// }
// else {
if ([[self mainMenu] performKeyEquivalent:event]) return;
if (_clientHandler && ![self keyWindow] && [event type] == NSKeyDown) {
[_hiddenWindow makeKeyAndOrderFront:self];
[_hiddenWindow sendEvent:event];
}
else {
[super sendEvent:event];
// }
}
}
- (void)createAtomContext {