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
"Enter" key behavior is strange with IME on Chrome #206
Comments
I've also tested on import { EditorView } from "@codemirror/next/view";
import { EditorState } from "@codemirror/next/state";
new EditorView({
state: EditorState.create({
doc: "",
extensions: []
})
}); In this case, Cursor is moved to first of the line after select the highlighted candidate. Expected result:
Actual result:
GIF: |
Attached patch should help with this. |
Is this issue resolved in 0.7.0? I still met same issue on https://codemirror.net/6/ and Edit: I've noticed that It seem that new EditorView({
state: EditorState.create({
doc: "",
extensions: [
keymap([
...defaultKeymap
])
]
})
}); Maybe, |
Oh, too bad. My patch fixed the issue in Chrome Linux (where it did originally occur too), bit it's entirely possible that macOS IME works differently. I'll test on a Mac soon. |
FIX: Fix an issue where using Enter during composition would insert a newline. Issue #206
Could you try again with 0.7.1? |
Thanks. |
Wonderful! |
I've enter following text with Google IME(Input method) on https://codemirror.net/6/ and I get wrong
<NewLine>
result.NIHONGO<Space><Enter>
📝 Press
<Space><Enter>
to select the highlighted candidate and inputed日本語
as results(日本語
===NIHONGO
)Expected result:
Actual result:
GIF:
Keyboard event results on https://w3c.github.io/uievents/tools/key-event-viewer.html:
Env
I've tested Firefox 76.0.1 and It works as expected.
Maybe, Keyboard event(CompositionEvent) handling is something wrong?
The text was updated successfully, but these errors were encountered: