Skip to content

Commit

Permalink
feat(hid): Add apple globe keycode
Browse files Browse the repository at this point in the history
* feat(hid): Add apple globe keycode
* Update docs/src/data/hid.js

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
Co-authored-by: Pete Johanson <peter@peterjohanson.com>
Co-authored-by: Nick Coutsos <nick@coutsos.com>
  • Loading branch information
4 people committed Sep 29, 2023
1 parent 9b3d2cb commit c1ebadc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/include/dt-bindings/zmk/keys.h
Expand Up @@ -1439,3 +1439,7 @@
#define C_KEYBOARD_INPUT_ASSIST_CANCEL \
(ZMK_HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_KEYBOARD_INPUT_ASSIST_CANCEL))
#define C_KBIA_CANCEL (C_KEYBOARD_INPUT_ASSIST_CANCEL)

/* Apple Globe key */
#define C_AC_NEXT_KEYBOARD_LAYOUT_SELECT (ZMK_HID_USAGE(HID_USAGE_CONSUMER, 0x029D))
#define GLOBE (C_AC_NEXT_KEYBOARD_LAYOUT_SELECT)
1 change: 1 addition & 0 deletions docs/src/data/groups.js
Expand Up @@ -49,6 +49,7 @@ export default {
"C_AC_DESKTOP_SHOW_ALL_WINDOWS",
"C_AC_DESKTOP_SHOW_ALL_APPLICATIONS",
"C_VOICE_COMMAND",
"C_AC_NEXT_KEYBOARD_LAYOUT_SELECT",
],
applications: [
"C_AL_NEXT_TASK",
Expand Down
21 changes: 21 additions & 0 deletions docs/src/data/hid.js
Expand Up @@ -7865,4 +7865,25 @@ export default [
},
footnotes: {},
},
{
names: ["C_AC_NEXT_KEYBOARD_LAYOUT_SELECT", "GLOBE"],
description: "AC Next Keyboard Layout Select (Apple Globe)",
context: "Consumer AC",
clarify: true,
usages: [
{
application: consumerApplication,
item: usage(consumerPage, 0x29d),
},
],
documentation: "https://usb.org/sites/default/files/hut1_2.pdf#page=153",
os: {
windows: null,
linux: null,
android: null,
macos: true,
ios: true,
},
footnotes: {},
},
];

0 comments on commit c1ebadc

Please sign in to comment.