From be295dad333866cf23466d7e068354bc4c1f02ea Mon Sep 17 00:00:00 2001 From: Zhen <66577170+zhen-zen@users.noreply.github.com> Date: Sat, 17 Oct 2020 01:42:13 -0700 Subject: [PATCH] NC: add search action --- YogaSMCNC/AppDelegate.swift | 9 ++++++++- YogaSMCUtils/ScriptHelper.swift | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/YogaSMCNC/AppDelegate.swift b/YogaSMCNC/AppDelegate.swift index 68d688ce..7606f139 100644 --- a/YogaSMCNC/AppDelegate.swift +++ b/YogaSMCNC/AppDelegate.swift @@ -295,7 +295,11 @@ func notificationCallback(_ port: CFMachPort?, _ msg: UnsafeMutableRawPointer?, enum eventAction : String { // Userspace - case nothing, script, micmute, camera, airplane, wireless, bluetooth, bluetoothdiscoverable, prefpane, mirror, spotlight, mission, launchpad, desktop, expose, sleep + case nothing, script + case airplane, wireless, bluetooth, bluetoothdiscoverable + case prefpane, spotlight, search, sleep, micmute + case mission, launchpad, desktop, expose + case mirror, camera // Driver case backlight, keyboard, thermal } @@ -366,6 +370,9 @@ func eventActuator(_ desc: eventDesc, _ data: UInt32, _ conf: UnsafePointer