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

Basic keycode overhaul #14726

Merged
merged 5 commits into from
Nov 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
More formatting...
  • Loading branch information
fauxpark committed Oct 7, 2021
commit 01ab7e25c7bb9c198242ee83e52e0fcc7560d3ef
16 changes: 4 additions & 12 deletions quantum/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,13 +822,9 @@ void register_code(uint8_t code) {
}
#ifdef EXTRAKEY_ENABLE
else if
IS_SYSTEM(code) {
host_system_send(KEYCODE2SYSTEM(code));
}
IS_SYSTEM(code) { host_system_send(KEYCODE2SYSTEM(code)); }
else if
IS_CONSUMER(code) {
host_consumer_send(KEYCODE2CONSUMER(code));
}
IS_CONSUMER(code) { host_consumer_send(KEYCODE2CONSUMER(code)); }
#endif
#ifdef MOUSEKEY_ENABLE
else if
Expand Down Expand Up @@ -891,13 +887,9 @@ void unregister_code(uint8_t code) {
send_keyboard_report();
}
else if
IS_SYSTEM(code) {
host_system_send(0);
}
IS_SYSTEM(code) { host_system_send(0); }
else if
IS_CONSUMER(code) {
host_consumer_send(0);
}
IS_CONSUMER(code) { host_consumer_send(0); }
#ifdef MOUSEKEY_ENABLE
else if
IS_MOUSEKEY(code) {
Expand Down