Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(hid): Add apple globe keycode #1938

Merged
merged 7 commits into from Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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_KEYBOARD_LAYOUT_SELECT (ZMK_HID_USAGE(HID_USAGE_CONSUMER, 0x029D))
#define GLOBE (C_KEYBOARD_LAYOUT_SELECT)
ReFil marked this conversation as resolved.
Show resolved Hide resolved
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_KEYBOARD_LAYOUT_SELECT",
ReFil marked this conversation as resolved.
Show resolved Hide resolved
],
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_KEYBOARD_LAYOUT_SELECT", "GLOBE"],
ReFil marked this conversation as resolved.
Show resolved Hide resolved
description: "Layout Select (Apple Globe)",
ReFil marked this conversation as resolved.
Show resolved Hide resolved
context: "Consumer AC",
clarify: true,
usages: [
{
application: consumerApplication,
item: usage(consumerPage, 0x29d),
},
],
documentation: "https://usb.org/sites/default/files/hut1_2.pdf#page=150",
ReFil marked this conversation as resolved.
Show resolved Hide resolved
os: {
windows: null,
linux: null,
android: null,
macos: true,
ios: true,
},
footnotes: {},
},
];