Skip to content

Commit

Permalink
fix: autoshift
Browse files Browse the repository at this point in the history
  • Loading branch information
daedric committed Jul 8, 2024
1 parent a593cff commit 369fdac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions keyboards/zsa/moonlander/keymaps/daedric/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,10 @@ static bool _autoshift_press_user(uint16_t keycode, bool shifted, keyrecord_t *r
uint32_t skc = unicodemap_get_code_point(skc_or_skc_idx);
register_unicode(skc);
set_mods(temp_mod);
} else {
register_code16(!shifted ? kc : skc_or_skc_idx);
return false;
}

register_code16(!shifted ? kc : skc_or_skc_idx);
return true;
}
void autoshift_press_user(uint16_t keycode, bool shifted, keyrecord_t *record) {
Expand Down Expand Up @@ -1228,7 +1228,7 @@ static bool _autoshift_release_user(uint16_t keycode, bool shifted, keyrecord_t
}

if (shifted && tap_unicode) {
return true;
return false;
}

unregister_code16(!shifted ? kc : skc_or_skc_idx);
Expand Down
6 changes: 3 additions & 3 deletions scripts/gen_keymap.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,10 +637,10 @@ def _gen_custom_autoshift(self):
uint32_t skc = unicodemap_get_code_point(skc_or_skc_idx);
register_unicode(skc);
set_mods(temp_mod);
}} else {{
register_code16(!shifted ? kc : skc_or_skc_idx);
return false;
}}
register_code16(!shifted ? kc : skc_or_skc_idx);
return true;
}}
void autoshift_press_user(uint16_t keycode, bool shifted, keyrecord_t *record) {{
Expand Down Expand Up @@ -686,7 +686,7 @@ def _gen_custom_autoshift(self):
{switch}
if (shifted && tap_unicode) {{
return true;
return false;
}}
unregister_code16(!shifted ? kc : skc_or_skc_idx);
Expand Down

0 comments on commit 369fdac

Please sign in to comment.