1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-24 21:23:33 +01:00
This commit is contained in:
Kris Maglione
2009-04-22 13:15:56 -04:00
parent 9320c5b1be
commit 2f753b6d27
7 changed files with 46 additions and 21 deletions

View File

@@ -501,7 +501,7 @@ function Events() //{{{
function isFormElemFocused()
{
let elem = window.document.commandDispatcher.focusedElement;
let elem = liberator.focus;
if (elem == null)
return false;
@@ -591,7 +591,7 @@ function Events() //{{{
if (options["focuscontent"])
{
setTimeout(function () {
let focused = document.commandDispatcher.focusedElement;
let focused = liberator.focus;
if (focused && (focused.value !== undefined) && focused.value.length == 0)
focused.blur();
}, 100);
@@ -963,7 +963,7 @@ function Events() //{{{
shift = (keys[i] >= "A" && keys[i] <= "Z");
}
let elem = window.document.commandDispatcher.focusedElement;
let elem = liberator.focus;
if (!elem)
elem = window.content;