Re-dispatch KeyboardEvent
问题 Working on an Angular / TypeScript app, where we have a custom basic text editor. Trying to appropriately handle when a user has a highlighted selection and then hits a key, intending to replace the selection. To handle this, we need to properly remove the "hidden" components that they have selected before inserting their intended content. My initial thought was to: Capture KeyDown event Check if there is a highlighted range selected If yes, delete all of the selected content Re-dispatch the