How to trigger a UI by typing a special character?


I’m trying to implement user mentioning. basically when I type “@”, I will launch a hover ui on top of the editor, within the ui, there is a list of users. and As I type, I narrow down the list of users to those whose name still matches what I have typed.

I don’t know what the best way is to implement this? Is there an event fired when I type certain character?


You can use the DOM events (via handleDOMEvents), or use the handleTextInput prop.

1 Like