Trigger keyboard shortcut on keydown, not up

main
Ashelyn Dawn 3 years ago
parent 862c72217e
commit 03740885ee

@ -283,7 +283,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
const uint16_t keymap_value = keymaps[_WIN_LAYER][key.row][key.col];
if (keymap_value == KC_TRNS) {
if(!record->event.pressed) {
if(record->event.pressed) {
register_code(KC_LGUI);
tap_code(keycode);
unregister_code(KC_LGUI);

Loading…
Cancel
Save