Open TetraTheta opened 1 year ago
Thank for for the detailed bug report.
This problem won't be easy to reproduce for people not in East Asia because they don't have IME mode in their keyboard/language. You might need to install CJK language pack and switch to corresponding keyboard layout to reproduce.
Yes, unfortunately this will take some time and research on my part. I can't commit to doing so in the near-term. I added the "help wanted" label to this issue, in case someone is able to help fix it.
Description
If user tries to save file with Ctrl + S in Source Code Mode, IME mode isn't automatically escaped.
Pressing Ctrl + S first time escapes IME mode, but don't save the file. So user must press Ctrl + S again to save file.
Steps to reproduce
It will be saved with automatic IME mode escape
Make sure you don't escape IME mode with Space or Enter or arrow key etc.
Second attempt will save file correctly
Expected behavior
When pressing Ctrl + S, IME mode should be escaped and file should be saved too, just like in Editor Mode.
Actual behavior
Only IME mode is escaped when pressing Ctrl + S while at IME mode.
Versions
Additional Note
I'm not sure if this is related to https://github.com/marktext/marktext/pull/3419 but I really don't know why this problem happens.
This problem won't be easy to reproduce for people not in East Asia because they don't have IME mode in their keyboard/language. You might need to install CJK language pack and switch to corresponding keyboard layout to reproduce.
Instead of posting issue in marktext/marktext, I choose to post it here because this repository is much more active than the origianl.