1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 22:34:18 +01:00

Remember last focused frame

This commit is contained in:
Kris Maglione
2008-11-21 06:35:27 +00:00
parent 2d7036b917
commit d4ef9cee7a
4 changed files with 37 additions and 38 deletions

View File

@@ -1064,6 +1064,9 @@ function Events() //{{{
var win = window.document.commandDispatcher.focusedWindow;
var elem = window.document.commandDispatcher.focusedElement;
if (win && win.top == content && liberator.has("tabs"))
tabs.localStore.focusedFrame = win;
if (elem && elem.readOnly)
return;