react icon indicating copy to clipboard operation
react copied to clipboard

Declarative API for installing global DOM event handlers

Open sophiebits opened this issue 13 years ago • 63 comments

#284 reminded me that one thing I've sometimes wanted is to install a handler on window for keypress (for keyboard shortcuts) or scroll. Right now I can just do window.addEventListener in componentDidMount but since React is listening already, it would be nice if there were some way for me to intercept those events. (In addition, receiving normalized synthetic events is generally more useful.)

sophiebits avatar Aug 21 '13 21:08 sophiebits

Test - security research

povfarwa avatar Jun 17 '26 19:06 povfarwa

Their issue - should FAIL

gogi005 avatar Jun 24 '26 14:06 gogi005

Their issue in BATCH

gogi005 avatar Jun 24 '26 14:06 gogi005