VIA Protocol 12 + fixes (#19916)
Co-authored-by: Wilba <wilba@wilba.tech> Co-authored-by: zvecr <git@zvecr.com>
This commit is contained in:
@@ -26,7 +26,7 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
KB_ARRW = USER00, // toggle right modifiers are arrows feature
|
||||
KB_ARRW = QK_KB_0, // 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)
|
||||
|
@@ -22,7 +22,7 @@ bool ID61_process_special_k(uint16_t keycode, keyrecord_t *record, bool arrow_mo
|
||||
bool is_raised = get_highest_layer(layer_state|default_layer_state) != 0;
|
||||
|
||||
if (record->event.pressed) {
|
||||
set_keycode_raised(keycode - USER00, is_raised); // save for key release event
|
||||
set_keycode_raised(keycode - QK_KB_0, is_raised); // save for key release event
|
||||
if (is_raised) {
|
||||
// *** Fn keyed ***
|
||||
if (arrow_mode) {
|
||||
@@ -43,7 +43,7 @@ bool ID61_process_special_k(uint16_t keycode, keyrecord_t *record, bool arrow_mo
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (get_keycode_raised(keycode - USER00)) {
|
||||
if (get_keycode_raised(keycode - QK_KB_0)) {
|
||||
// *** Fn keyed ***
|
||||
if (arrow_mode) {
|
||||
// alternate key
|
||||
|
Reference in New Issue
Block a user