From 4309dffc6ab413eadc76ff246adeaa542b4c63b2 Mon Sep 17 00:00:00 2001 From: ajreckof Date: Sun, 7 Aug 2022 00:30:56 +0100 Subject: add CMD_OR_CTRL as a Key and not just a key modifier --- core/os/keyboard.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/os/keyboard.cpp') diff --git a/core/os/keyboard.cpp b/core/os/keyboard.cpp index e0231b818f..5183b77cb1 100644 --- a/core/os/keyboard.cpp +++ b/core/os/keyboard.cpp @@ -63,12 +63,15 @@ static const _KeyCodeText _keycodes[] = { {Key::CTRL ,"Ctrl"}, #if defined(MACOS_ENABLED) {Key::META ,"Command"}, + {Key::CMD_OR_CTRL ,"Command"}, {Key::ALT ,"Option"}, #elif defined(WINDOWS_ENABLED) {Key::META ,"Windows"}, + {Key::CMD_OR_CTRL ,"Ctrl"}, {Key::ALT ,"Alt"}, #else {Key::META ,"Meta"}, + {Key::CMD_OR_CTRL ,"Ctrl"}, {Key::ALT ,"Alt"}, #endif {Key::CAPSLOCK ,"CapsLock"}, -- cgit v1.2.3