mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 21:01:31 +00:00
add DISABLE_M2_KEYCODES
This commit is contained in:
parent
de583879a8
commit
48664ebc05
@ -88,3 +88,4 @@
|
|||||||
|
|
||||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 /* The maximum brightness level */
|
#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*/
|
@ -345,6 +345,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
|
#ifndef DISABLE_M2_KEYCODES
|
||||||
case MO(WIN_FN):
|
case MO(WIN_FN):
|
||||||
case MO(MAC_FN):
|
case MO(MAC_FN):
|
||||||
fn_make_flag = record->event.pressed;
|
fn_make_flag = record->event.pressed;
|
||||||
@ -494,7 +495,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
#endif//DISABLE_M2_KEYCODES
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user