Typing a React MouseEvent that Also Watches for Keyboard Clicks

前端 未结 0 797
有刺的猬
有刺的猬 2021-01-15 02:19

In the following code:

    const handleClick = (event: any) => {
        const isActionKeyDown = event.keyCode === ENTER_KEY_CODE || event.keyCode === SPAC         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题