I'm looking for an existing library, that'd provide a visual component for "entering user commands":
- the component appears on the screen by holding a hotkey combination (for example,
Ctrl + L), - it's a pop-up window, expecting user input &
Enterhit - on
Enter, a javascript function is called with user input passed in as an argument - user can opt out of entering by hitting
Esckey.
I'm happy to follow pointers towards JS code excerpts to render a simple component like this. I'm working on a prototype, no fancy design or particularly wide range of customisation options is a requirement. (Disregard the look Slack one below, it's nice but potentially too much for the prototype of app I am building at this point).
Here's a couple of screenshots of the kind of component I am looking for:



