From d49b2ac1d23c9e0a7a2bd6b85dbf1aefcdfe74d0 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Fri, 7 Oct 2022 12:57:21 -0500 Subject: [PATCH] Add alias for Apple "globe" key This adds an alias for the Apple "globe" key, which triggers the emoji picker on Apple devices. It doesn't bear any obvious relationship to the "next keyboard layout select" terminology in the HID tables, so the alias is warranted. It is not the same as the Apple keyboard `fn` key, but it is useful nonetheless. Signed-off-by: Michael Richters --- src/kaleidoscope/key_defs/aliases.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/kaleidoscope/key_defs/aliases.h b/src/kaleidoscope/key_defs/aliases.h index 8b6789d0bb..35614ceaca 100644 --- a/src/kaleidoscope/key_defs/aliases.h +++ b/src/kaleidoscope/key_defs/aliases.h @@ -65,3 +65,12 @@ #define MEH(k) LCTRL(LSHIFT(LALT((k)))) #define HYPER(k) LGUI(MEH((k))) + +// Apple's "globe" key (Consumer Control version). This key will bring up the +// emoji tool on MacOS, just like tapping on the `fn` key on an Apple keyboard. +// Unfortunately, it does not act as the `fn` "modifier" when held, however; +// that key has no equivalent in the USB HID tables, so there's no way for a +// third-party keyboard to emulate it. This alias is included here because it +// doesn't have any obvious relationship to the "next keyboard layout select" +// canonical name in the HID tables. +#define Key_Apple_Globe Consumer_AC_NextKeyboardLayoutSelect