Mention: do not confirm selection on "space" #6394
Labels
domain:ui/ux
This issue reports a problem related to UI or UX.
package:mention
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
📝 Provide a description of the improvement
Currently, it is cumbersome to simply type text that uses the mention marker but is not in the mention list, in some cases.
For example, suppose this:
#1
.#1
, so I hitspace
.#1
is replaced with#1000
. That's becausespace
was used to confirm my selection in the list, which is clearly not what I wanted.This seems to be caused by this line, which tells me that even
tab
could be used to confirm my select 🤔https://github.com/ckeditor/ckeditor5-mention/blob/9a514ccb0dc8b595100fd4459a82fa67cc329d1d/src/mentionui.js#L124
I propose to allow confirming the selected item by using the
enter
key, exclusively.📃 Other details
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: