How to set focus follow mouse?


#1

Is there a way to set Focus follows mouse in Atom?


#2

Something like the following snippet gives focus when the mouse enters an element:

require('jquery')('body').on 'mouseenter', '*', ({currentTarget: target}) ->
  while(typeof target.focus isnt 'function') target = target.parentNode
  target.focus()

Might have some serious performance implications though…