From 7996be6db6e9cf5f76427ed7bbfbe142e3f5aee5 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Mon, 20 Feb 2023 00:59:46 +0000 Subject: Refactor more KC_MISSION_CONTROL/KC_LAUNCHPAD usages (#19891) --- .../idobao/id80/v3/ansi/keymaps/idobao/keymap.c | 26 +--------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'keyboards/idobao/id80') diff --git a/keyboards/idobao/id80/v3/ansi/keymaps/idobao/keymap.c b/keyboards/idobao/id80/v3/ansi/keymaps/idobao/keymap.c index faa483d88b..945484fbb0 100644 --- a/keyboards/idobao/id80/v3/ansi/keymaps/idobao/keymap.c +++ b/keyboards/idobao/id80/v3/ansi/keymaps/idobao/keymap.c @@ -29,10 +29,8 @@ enum { }; enum { - KC_MCON = USER00, // macOS Open Mission Control - KC_LPAD, // macOS Open Launchpad #ifdef RGB_MATRIX_ENABLE - RGB_TPK, // Toggle Per-Key + RGB_TPK = USER00, // Toggle Per-Key RGB_TUG, // Toggle Underglow #endif // RGB_MATRIX_ENABLE KB_VRSN = USER09 // debug, type version @@ -43,11 +41,6 @@ enum { #define RGB_TUG _______ #endif // RGB_MATRIX_ENABLE -enum macos_consumer_usages { - _AC_SHOW_ALL_WINDOWS = 0x29F, // mapped to KC_MCON - _AC_SHOW_ALL_APPS = 0x2A0 // mapped to KC_LPAD -}; - const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* * ┌───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┐┌───┐ @@ -293,23 +286,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; - default: return true; /* Process all other keycodes normally */ } -- cgit v1.2.3