Currently only on key press
is possible to implement with custom shortcuts, but there are instances where on key down
and on key up
would be useful
as an example our use case is a chat app. if you press enter, it sends a message to our AI. we were wanting an option to press shift+enter to send the message somewhere else (like a dm).
this is what you would normally see.
while holding shift you would see this instead:
we can set a shortcut for enter
and one for shift+enter
and we get the result we're looking for, but there's no way to visually indicate to the user that shift is currently being held or not