4 ms·
> They were trying to detect whether it was keyboard or mouse activation But the code shown doesn't do different stuff for Keyboard vs Mouse, it just checks if
by echoangle 2y ago
> They were trying to detect whether it was keyboard or mouse activation
But the code shown doesn't do different stuff for Keyboard vs Mouse, it just checks if it is either one of them. Why would you do that? Which other click event types are there that you want to filter?
- joshtumath 2y agoI omitted that code to keep the article simpler. We want to turn off the animation on keyboard, and move the focus to different things depending on if it's a keyboard or pointer user.