Add SPMediaKeyTap back (#621)

This commit is contained in:
Mikalai Daronin
2021-01-06 16:46:21 +03:00
committed by GitHub
parent fb634bc2d4
commit 57709413e1
11 changed files with 500 additions and 9 deletions

View File

@@ -4,11 +4,13 @@
#include "globalshortcuts/globalshortcutbackend-macos.h"
class PlatformInterface;
@class SPMediaKeyTap;
@interface AppDelegate : NSObject<NSApplicationDelegate, NSUserNotificationCenterDelegate> {
PlatformInterface* application_handler_;
NSMenu* dock_menu_;
GlobalShortcutBackendMacOS* shortcut_handler_;
SPMediaKeyTap* key_tap_;
}
@@ -27,4 +29,5 @@ class PlatformInterface;
- (void) setDockMenu: (NSMenu*)menu;
- (GlobalShortcutBackendMacOS*) shortcut_handler;
- (void) setShortcutHandler: (GlobalShortcutBackendMacOS*)backend;
- (void) mediaKeyTap: (SPMediaKeyTap*)keyTap receivedMediaKeyEvent:(NSEvent*)event;
@end