mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 14:54:13 +01:00
Deal with native keyboard scrolling issues after focusContent, with the side-effect of again focusing the top-level window when the content window is focused.
This commit is contained in:
@@ -369,7 +369,7 @@ const Dactyl = Module("dactyl", {
|
||||
if (elem instanceof Document)
|
||||
elem = elem.defaultView;
|
||||
if (elem instanceof Window)
|
||||
services.focus.clearFocus(elem);
|
||||
services.focus.focusedWindow = elem;
|
||||
else
|
||||
services.focus.setFocus(elem, flags);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user