Angular (19): Keydown event in a node extension #6263
Unanswered
SABKraken
asked this question in
General Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
in Angular i've created a new node extension to display a (css) box with header and content text.
But if the user will edit the header or content text and press the Delete key, the whole box disappears and not only the sign under the cursor. So my idea was to add a key down listener to the node and if the delete key was pressed i call the stopPropagation() function.
Q: How can i add a listener to the node? Or does anyone have a better idea?
Thanks in advance and best greetings. :-)
Beta Was this translation helpful? Give feedback.
All reactions