From 79e731d9b41dbc68b6dee021a64a8492f2be6599 Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Wed, 30 Nov 2022 01:26:12 +0100 Subject: [PATCH] Add macOS keycodes for left/right control and tab (#535) --- src/gui/guiWrapper.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/guiWrapper.h b/src/gui/guiWrapper.h index e57e52fe..19b125d1 100644 --- a/src/gui/guiWrapper.h +++ b/src/gui/guiWrapper.h @@ -7,6 +7,10 @@ #include #endif +#if BOOST_OS_MACOS +#include +#endif + struct WindowHandleInfo { #if BOOST_OS_WINDOWS @@ -36,6 +40,10 @@ enum struct PlatformKeyCodes : uint32 LCONTROL = GDK_KEY_Control_L, RCONTROL = GDK_KEY_Control_R, TAB = GDK_KEY_Tab, +#elif BOOST_OS_MACOS + LCONTROL = kVK_Control, + RCONTROL = kVK_RightControl, + TAB = kVK_Tab, #else LCONTROL = 0, RCONTROL = 0,