1
0
Fork 0

Remove some useless code from keymaps (#23787)

This commit is contained in:
Ryan 2024-05-24 04:21:39 +10:00 committed by GitHub
parent 2e0498080f
commit e659c3dae9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
71 changed files with 3 additions and 1066 deletions

View file

@ -16,7 +16,9 @@
#include QMK_KEYBOARD_H
// Defines the keycodes used by our macros in process_record_user
enum custom_keycodes { QMKBEST = SAFE_RANGE, QMKURL };
enum custom_keycodes {
QMKBEST = SAFE_RANGE,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(/* Base */
@ -41,14 +43,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// when keycode QMKBEST is released
}
break;
case QMKURL:
if (record->event.pressed) {
// when keycode QMKURL is pressed
SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
} else {
// when keycode QMKURL is released
}
break;
}
return true;
}