You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new file or directory in the sidebar, typing Japanese causes @keydown.enter to malfunction.
In Japanese, there are two times to press the Enter key.
First is when converting input to kanji.
Second is when completing input (when generating a file).
I would like @keydown.enter to be executed only the second time, but in fact, it is executed on the first press of Enter key and seems to be trying to generate a file without any text being entered. (And it fails to create the file because it has no filename entered.)
This problem should occur in languages other than Japanese where an IME is required, such as Chinese and Korean.
(Also this problem has occurred only on macOS.)
At least using @keypress.enter instead avoids this problem.
I think this is the better way to fix this. quickly without effect some logic.
Can you reproduce the issue?
Expected behavior:
Event @keydown.enter run only when the enter key is pressed a second time (decision input).
Actual behavior:
Event @keydown.enter run at the first time(converting input)
Link to an example: [optional]
For example, these codes occur the bug of this issue.
Description
When creating a new file or directory in the sidebar, typing Japanese causes
@keydown.enter
to malfunction.In Japanese, there are two times to press the Enter key.
I would like
@keydown.enter
to be executed only the second time, but in fact, it is executed on the first press of Enter key and seems to be trying to generate a file without any text being entered. (And it fails to create the file because it has no filename entered.)This problem should occur in languages other than Japanese where an IME is required, such as Chinese and Korean.
(Also this problem has occurred only on macOS.)
At least using
@keypress.enter
instead avoids this problem.I think this is the better way to fix this. quickly without effect some logic.
Expected behavior:
Event
@keydown.enter
run only when the enter key is pressed a second time (decision input).Actual behavior:
Event
@keydown.enter
run at the first time(converting input)Link to an example: [optional]
For example, these codes occur the bug of this issue.
marktext/src/renderer/components/sideBar/treeFolder.vue
Line 40 in aed36db
marktext/src/renderer/components/sideBar/treeFolder.vue
Line 22 in aed36db
marktext/src/renderer/components/sideBar/tree.vue
Line 57 in aed36db
And then, like this method is called with no input.
marktext/src/renderer/mixins/index.js
Line 96 in aed36db
Versions
The text was updated successfully, but these errors were encountered: