From e576b78ba7c7e6fabf6dad5ec54d9ad51abe7a4d Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 16 Jun 2021 19:03:52 +0200 Subject: [PATCH] Switch from using hostos::OSX to hostos::MACOS Signed-off-by: Gergely Nagy --- examples/Features/AppSwitcher/AppSwitcher.cpp | 2 +- .../src/kaleidoscope/plugin/Unicode.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/Features/AppSwitcher/AppSwitcher.cpp b/examples/Features/AppSwitcher/AppSwitcher.cpp index e75c94bf..64845e61 100644 --- a/examples/Features/AppSwitcher/AppSwitcher.cpp +++ b/examples/Features/AppSwitcher/AppSwitcher.cpp @@ -40,7 +40,7 @@ EventHandlerResult AppSwitcher::onKeyEvent(KeyEvent &event) { // If AppSwitcher was not already active, hold its modifier first. if (!active_addr_.isValid()) { - if (::HostOS.os() == hostos::OSX) { + if (::HostOS.os() == hostos::MACOS) { event.key = Key_LeftGui; } else { event.key = Key_LeftAlt; diff --git a/plugins/Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp b/plugins/Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp index da4c2ce8..ef915fa8 100644 --- a/plugins/Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp +++ b/plugins/Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp @@ -42,7 +42,7 @@ void Unicode::start(void) { kaleidoscope::Runtime.hid().keyboard().releaseRawKey(Key_KeypadAdd); kaleidoscope::Runtime.hid().keyboard().sendReport(); break; - case hostos::OSX: + case hostos::MACOS: kaleidoscope::Runtime.hid().keyboard().pressRawKey(Key_LeftAlt); break; default: @@ -56,7 +56,7 @@ void Unicode::input(void) { case hostos::LINUX: break; case hostos::WINDOWS: - case hostos::OSX: + case hostos::MACOS: kaleidoscope::Runtime.hid().keyboard().pressRawKey(Key_LeftAlt); break; default: @@ -75,7 +75,7 @@ void Unicode::end(void) { kaleidoscope::Runtime.hid().keyboard().sendReport(); break; case hostos::WINDOWS: - case hostos::OSX: + case hostos::MACOS: kaleidoscope::Runtime.hid().keyboard().releaseRawKey(Key_LeftAlt); kaleidoscope::Runtime.hid().keyboard().sendReport(); break;