Shift + mouseover with jQuery

前端 未结 4 1269
再見小時候
再見小時候 2021-02-20 13:34

I\'m trying to detect whether the shift key is being pressed while the cursor is moved over a particular element. The function fires, but only after I click on another

4条回答
  •  自闭症患者
    2021-02-20 14:12

    I tried your code like this and it works perfectly. You do have to "shift" then mouseover, though.

    
    
    
    
    
    
    
    


    This is a div.

    What type of element is it being applied to?

提交回复
热议问题