codemirror-vim icon indicating copy to clipboard operation
codemirror-vim copied to clipboard

@codemirror/[email protected] + Chrome v126 - Enter not inserting new line in insert or normal mode

Open infime opened this issue 1 year ago • 2 comments

Seems likely to have something to do with the new EditContext API usage (https://github.com/codemirror/view/blob/ed78a0cbb6852c02acc93c85cbabe0ac12ab13c1/CHANGELOG.md#new-features).

Still works as expected on 6.28.1 + Chrome v126

infime avatar Jul 16 '24 18:07 infime

Do you see this on https://raw.githack.com/replit/codemirror-vim/master/dev/web-demo.html, or with another configuration? I couldn't reproduce the bug with chrome 126 on windows with the above link.

nightwing avatar Jul 20 '24 10:07 nightwing

@infime did you include basicSertup, or https://codemirror.net/docs/ref/#commands.standardKeymap in your codemirror setup? Seems like the change is in codemirror itself which does not insert new lines without standardCommands if EditContext mode is active.

nightwing avatar Jul 22 '24 18:07 nightwing