-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature proposal
When using the editor component, certain key presses, like "Enter," propagate their events, causing unintended behavior. We need a way to trap specific key events within the component to allow for actions like adding a new line without exiting the editor area.
It would be beneficial to have a configuration option to specify which keys should not propagate their events. This would allow us to define keys that only trigger actions within the editor component itself.
We are currently using the following code as a workaround to prevent the Enter key from propagating its event.
editor.getElement().executeJs(
"this.addEventListener('keydown', (e)=>{if (e.keyCode == 13) e.stopPropagation()});"
);
Describe solution expectations
editor.addStopPropagationOn(Key.ENTER, ...);
Additional information
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
To Do