Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Auto pair common Markdown syntax" not working for dead backtick (` ``) key on Ubuntu #6027

Open
3 tasks done
LinqLover opened this issue Apr 14, 2024 · 1 comment
Open
3 tasks done

Comments

@LinqLover
Copy link

  • Searched existing issues to avoid creating duplicates.

  • Confirmed that it can be reproduced in built-in themes without customized css.

  • Searched http://support.typora.io/


Describe the bug
On Ubuntu with a German keyboard layout (Qwertz), I cannot type a grave accent (`) while selecting some text to wrap it into a code block.

To Reproduce
Steps to reproduce the behavior:

  1. Type abc
  2. Select it
  3. Type dead backtick on Ubuntu Qwertz keyboard:
    • either Shift + ´ , Shift + ´
    • or Shift + ´ , Space

Expected behavior
`abc`

Actual behavior
`

Desktop (please complete the following information):

  • OS: Ubuntu 22, Qwertz keyboard layout

Typora Version
e.g: 1.8.10

Additional context
For reference, VS Code handles both input versions exactly as I would expect it.

Not sure what's the proper way to implement this, but from my black-box perspective I think U+0300 COMBINING GRAVIS ACCENT character should be handled in a similar way to U+0060, but this might need to be honored for the next keyboard input. Also consider special cases like pressing Shift + ´ , a while the text is selected, which like in VS Code should replace the prior selection by a single à.

@abnerlee
Copy link
Contributor

This option requires a restart of Typora to apply. Does this happens in new Typora window or after you restart Typora?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants