Redispatch events to handle native shortcuts

This commit is contained in:
Kevin Sawicki
2016-06-15 13:55:19 -07:00
parent 66fe1e48e8
commit a2bbfea9e0
3 changed files with 53 additions and 24 deletions

View File

@@ -152,4 +152,21 @@ class NativeWindowMac : public NativeWindow {
} // namespace atom
@interface AtomNSWindow : NSWindow {
@private
atom::NativeWindowMac* shell_;
bool enable_larger_than_screen_;
BOOL redispatchingEvent_;
BOOL eventHandled_;
}
@property BOOL acceptsFirstMouse;
@property BOOL disableAutoHideCursor;
@property BOOL disableKeyOrMainWindow;
- (void)setShell:(atom::NativeWindowMac*)shell;
- (void)setEnableLargerThanScreen:(bool)enable;
- (BOOL)redispatchKeyEvent:(NSEvent*)event;
- (BOOL)performKeyEquivalent:(NSEvent*)theEvent;
@end
#endif // ATOM_BROWSER_NATIVE_WINDOW_MAC_H_