Add macOS keycodes for left/right control and tab (#535)

This commit is contained in:
goeiecool9999 2022-11-30 01:26:12 +01:00 committed by GitHub
parent 6f985c3c78
commit 79e731d9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,10 @@
#include <gdk/gdkkeysyms.h> #include <gdk/gdkkeysyms.h>
#endif #endif
#if BOOST_OS_MACOS
#include <Carbon/Carbon.h>
#endif
struct WindowHandleInfo struct WindowHandleInfo
{ {
#if BOOST_OS_WINDOWS #if BOOST_OS_WINDOWS
@ -36,6 +40,10 @@ enum struct PlatformKeyCodes : uint32
LCONTROL = GDK_KEY_Control_L, LCONTROL = GDK_KEY_Control_L,
RCONTROL = GDK_KEY_Control_R, RCONTROL = GDK_KEY_Control_R,
TAB = GDK_KEY_Tab, TAB = GDK_KEY_Tab,
#elif BOOST_OS_MACOS
LCONTROL = kVK_Control,
RCONTROL = kVK_RightControl,
TAB = kVK_Tab,
#else #else
LCONTROL = 0, LCONTROL = 0,
RCONTROL = 0, RCONTROL = 0,