-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
What happened?
When typing the Cyrillic letter 'х' (ha) inside a markdown code block, the editor inserts square brackets [] instead of the character. This happens because the Russian 'х' is located on the same physical key as [ on the US QWERTY layout
It seems the editor triggers the "auto-close brackets" feature based on the physical keycode, ignoring the current keyboard layout (Russian).
This works the same for the letter 'э' which is located on the same key as '
This issue affects both the desktop application and the web version
Steps to Reproduce:
- Create a code block in a document using triple brackets (```)
- Switch the keyboard layout to Russian
- Type the letter 'х' (located on the [ key) within the code block
- Type the letter 'э' (located on the ' key) within the code block
Expected Behavior:
When typed 'х' - Cyrillic character 'х' should be inserted
When typed 'э' - Cyrillic character 'э' should be inserted
Actual Behavior:
When typed 'х' - the editor ignores the layout and inserts square brackets []
When typed 'э' - the editor ignores the layout and inserts quotes ''
Keyboard Layout:
Russian / English (US)
Distribution version
Windows x64
App Version
0.25.5
What browsers are you seeing the problem on if you're using web version?
No response
Are you self-hosting?
- Yes
Self-hosting Version
No response
Relevant log output
Anything else?
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status