add DISABLE_M2_KEYCODES

This commit is contained in:
jonylee1986 2023-04-25 11:04:44 +08:00
parent de583879a8
commit 48664ebc05
2 changed files with 3 additions and 1 deletions

View File

@ -88,3 +88,4 @@
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 /* The maximum brightness level */
//#define DISABLE_M2_KEYCODES /*if you need to change or restore the default QMK button function, please open it*/

View File

@ -345,6 +345,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return false;
}
switch (keycode) {
#ifndef DISABLE_M2_KEYCODES
case MO(WIN_FN):
case MO(MAC_FN):
fn_make_flag = record->event.pressed;
@ -494,7 +495,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
}
}
return false;
#endif//DISABLE_M2_KEYCODES
default:
return true;
}