Link panel stealing focus is way too aggressive when using mouse #4732
Labels
domain:ui/ux
This issue reports a problem related to UI or UX.
package:link
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
A followup of https://github.com/ckeditor/ckeditor5-link/issues/23.
At this moment when clicking a link in the content, the panel is displayed, which steals editable focus and moves it to the URL field inside of the panel. This behavior is, however, very aggressive and may be considered a bug in some cases. For instance, if the user wants to fix a typo in the text of the link (not href) and they use mouse to put the caret at the right position, the link panel will appear and steal the focus. Then the user must use ESC or "Cancel" to go back to editable and do actual editing. Pretty annoying, IMO.
This could be the reason why some editors (Google Docs, Medium) use 2–step editing – the first one appears just to inform the user about the link and editing possibilities (edit, unlink)
and the second one, which actually will steal the focus from editable
I see 2 possible solutions.
Implement 2–step editing
It makes some sense and solves the focus issue. OTOH it kills the smooth, simple editing experience we expect in CKEditor 5.
Use different approaches when editing with mouse and keyboard.
The current approach (steal the focus) could be preserved for keyboard editing
but for mouse editing and navigation, I'd leave up to the user whether to edit in editable or change the href. In such situation, the panel would remain open and follow the selection as the user types.
WDYT?
The text was updated successfully, but these errors were encountered: