mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
We introduce a state variable `shift_pressed` for the purpose of detecting whether the Shift key is pressed when pasting content. Only if it is not, do we proceed with the default formatted paste behavior. In Chrome, plain paste works out of the box for `Ctrl+Shift+V`, but in Firefox, we need to handle it ourselves.