1
0
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:
Kris Maglione
2010-12-22 05:23:35 -05:00
parent f074e9811b
commit b0bca11890
4 changed files with 34 additions and 22 deletions

View File

@@ -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) {