codemirror / dev

Development repository for the CodeMirror editor project
https://codemirror.net/
Other
5.94k stars 376 forks source link

The Backspace key does not correctly trigger the autocomplete content #1426

Closed rabbitao closed 3 months ago

rabbitao commented 3 months ago

Describe the issue

link: https://codemirror.net/try/?example=Custom%20completions

When I type 'park' and press the Enter key, the autocomplete list disappears. At this point, when I press the Backspace key, the content becomes 'par', but the autocomplete window does not appear. It should appear, shouldn't it?

Browser and platform

No response

Reproduction link

https://codemirror.net/try/?example=Custom%20completions

marijnh commented 3 months ago

No, that's intentionally not how it works. VS Code does the same—it start completions when you type, but not when you backspace (unless a list is already open).