mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-12-20 12:40:22 -05:00
Progression
This commit is contained in:
parent
56cf21b3b3
commit
711584e208
2 changed files with 7 additions and 19 deletions
|
|
@ -76,22 +76,6 @@ uint16_t get_ongoing_keycode(uint16_t keycode, keyrecord_t* record) {
|
||||||
uint16_t custom_keycode = get_ongoing_keycode_user(keycode);
|
uint16_t custom_keycode = get_ongoing_keycode_user(keycode);
|
||||||
if (custom_keycode != KC_TRNS) { return custom_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;
|
uint8_t basic_keycode = keycode;
|
||||||
// Handle keys carrying a modifier, for ex on layers(! and ?).
|
// Handle keys carrying a modifier, for ex on layers(! and ?).
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ bool process_odk_layer(uint16_t keycode, keyrecord_t *record) {
|
||||||
del_weak_mods(MOD_MASK_SHIFT);
|
del_weak_mods(MOD_MASK_SHIFT);
|
||||||
del_oneshot_mods(MOD_MASK_SHIFT);
|
del_oneshot_mods(MOD_MASK_SHIFT);
|
||||||
unregister_mods(MOD_MASK_SHIFT);
|
unregister_mods(MOD_MASK_SHIFT);
|
||||||
|
tap_code(PG_ODK);
|
||||||
|
add_weak_mods(MOD_BIT(KC_LSFT));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -58,14 +61,15 @@ bool process_odk_layer(uint16_t keycode, keyrecord_t *record) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
tap_code(PG_ODK);
|
//tap_code(PG_ODK);
|
||||||
|
invoke_key(PG_ODK, record);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (is_shifted) {
|
/* if (is_shifted) {
|
||||||
is_shifted = false;
|
is_shifted = false;
|
||||||
//set_mods(mods);
|
//set_mods(mods);
|
||||||
add_weak_mods(MOD_BIT(KC_LSFT));
|
add_weak_mods(MOD_BIT(KC_LSFT));
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue