You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using Android soft keyboard (Gboard), the read-only entity element can't be deleted by pressing backspace. Similar to some previous issues, the root cause is some Android IMEs don't support KeyboardEvent.key and this value will always be 229(Unidentified). To workaround the compatibility issue, we should use InputEvent instead.
We may need to handle InputEvent in at least 2 plugins:
EditPlugin, it should dispatch the input event to entityFeatures. And the related features including RemoveEntityBetweenDelimitersFeature, DeleteBeforeEntityFeature, BackspaceAfterEntityFeature should also support input event.
ContentModelEditPlugin and its related logic like keyboardDelete should support input event.
Describe the bug
When using Android soft keyboard (Gboard), the read-only entity element can't be deleted by pressing backspace. Similar to some previous issues, the root cause is some Android IMEs don't support
KeyboardEvent.key
and this value will always be229
(Unidentified). To workaround the compatibility issue, we should useInputEvent
instead.We may need to handle
InputEvent
in at least 2 plugins:EditPlugin
, it should dispatch the input event toentityFeatures
. And the related features includingRemoveEntityBetweenDelimitersFeature
,DeleteBeforeEntityFeature
,BackspaceAfterEntityFeature
should also support input event.ContentModelEditPlugin
and its related logic likekeyboardDelete
should support input event.To Reproduce
Steps to reproduce the behavior:
Screenshots
Screen_Recording_20240109_184256_Chrome.mp4
Device Information
Additional context
Similar issues:
#513
#2061
The text was updated successfully, but these errors were encountered: