Progression

This commit is contained in:
Kawamashi 2025-09-25 18:22:29 +02:00
commit 711584e208
2 changed files with 7 additions and 19 deletions

View file

@ -76,22 +76,6 @@ uint16_t get_ongoing_keycode(uint16_t keycode, keyrecord_t* record) {
uint16_t custom_keycode = get_ongoing_keycode_user(keycode);
if (custom_keycode != KC_TRNS) { return custom_keycode; }
/* if (is_send_string_macro(keycode)) { return keycode; }
if (IS_LAYER_ON(_ODK)) {
switch (keycode) {
case PG_K:
case PG_B:
case PG_AROB:
case PG_3PTS:
case KC_SPC: // In order to uppercase J after '?' for ex.
return keycode;
default:
clear_recent_keys();
return KC_NO;
}
} */
uint8_t basic_keycode = keycode;
// Handle keys carrying a modifier, for ex on layers(! and ?).

View file

@ -41,6 +41,9 @@ bool process_odk_layer(uint16_t keycode, keyrecord_t *record) {
del_weak_mods(MOD_MASK_SHIFT);
del_oneshot_mods(MOD_MASK_SHIFT);
unregister_mods(MOD_MASK_SHIFT);
tap_code(PG_ODK);
add_weak_mods(MOD_BIT(KC_LSFT));
return false;
}
} else {
@ -58,14 +61,15 @@ bool process_odk_layer(uint16_t keycode, keyrecord_t *record) {
break;
default:
tap_code(PG_ODK);
//tap_code(PG_ODK);
invoke_key(PG_ODK, record);
}
}
if (is_shifted) {
/* if (is_shifted) {
is_shifted = false;
//set_mods(mods);
add_weak_mods(MOD_BIT(KC_LSFT));
}
} */
}
}
return true;