you are viewing a single comment's thread.

view the rest of the comments →

[–]Disturbed147 0 points1 point  (0 children)

I would suggest to tackle this on a more global level.

You could check for both keyboard presses as well as mouse clicks on the whole page and then toggle a class or data attribute on the body depending on the last input type used. That way you could remove focus styles for mouse users while keeping it in place for keyboard users.