Refactor more KC_MISSION_CONTROL/KC_LAUNCHPAD usages (#19891)
This commit is contained in:
@@ -26,9 +26,7 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
KC_MCON = USER00, // macOS Open Mission Control
|
||||
KC_LPAD, // macOS Open Launchpad
|
||||
KB_ARRW, // toggle right modifiers are arrows feature
|
||||
KB_ARRW = USER00, // toggle right modifiers are arrows feature
|
||||
KB_RSFT, // right shift or up arrow
|
||||
KB_RALT, // right alt or left arrow
|
||||
KB_RAPP, // menu or down arrow (Windows Menu)
|
||||
@@ -38,11 +36,6 @@ enum {
|
||||
KB_VRSN // debug, type version
|
||||
};
|
||||
|
||||
enum macos_consumer_usages {
|
||||
_AC_SHOW_ALL_WINDOWS = 0x29F, // mapped to KC_MCON
|
||||
_AC_SHOW_ALL_APPS = 0x2A0 // mapped to KC_LPAD
|
||||
};
|
||||
|
||||
/* Special Keys */
|
||||
#define SK_LT1C LT(_FN1, KC_CAPS) // Layer Tap 1, i.e., Tap = Caps Lock, Hold = Layer 1
|
||||
#define SK_LT2A LT(_FN2, KC_APP) // Layer Tap 2, i.e., Tap = Menu, Hold = Layer 2
|
||||
@@ -306,23 +299,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
return false;
|
||||
|
||||
// @see: https://github.com/qmk/qmk_firmware/issues/10111#issuecomment-752300353
|
||||
case KC_MCON:
|
||||
if (record->event.pressed) {
|
||||
host_consumer_send(_AC_SHOW_ALL_WINDOWS);
|
||||
} else {
|
||||
host_consumer_send(0);
|
||||
}
|
||||
return false;
|
||||
|
||||
case KC_LPAD:
|
||||
if (record->event.pressed) {
|
||||
host_consumer_send(_AC_SHOW_ALL_APPS);
|
||||
} else {
|
||||
host_consumer_send(0);
|
||||
}
|
||||
return false;
|
||||
|
||||
// Shift + Backspace = Delete, see: https://docs.qmk.fm/#/feature_advanced_keycodes?id=shift-backspace-for-delete
|
||||
case KC_BSPC: return ID61_backspace_special(keycode, record);
|
||||
|
||||
|
Reference in New Issue
Block a user