mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 22:22:31 +02:00
Fix 'focuscontent' error.
This commit is contained in:
1 parent
c47a0ec1cc
commit
49da7fca3a
1 file changed
+3
-3
@@ -551,14 +551,14 @@ function Events() //{{{
|
||||
if (doc == getBrowser().contentDocument)
|
||||
{
|
||||
// we want to stay in command mode after a page has loaded
|
||||
// TODO: move somehwere else, as focusing can already happen earlier than on "load"
|
||||
// TODO: move somewhere else, as focusing can already happen earlier than on "load"
|
||||
if (options["focuscontent"])
|
||||
{
|
||||
setTimeout(function () {
|
||||
let focused = liberator.focus;
|
||||
if (focused && (focused.value !== undefined) && focused.value.length == 0)
|
||||
if (focused && (focused.value != null) && focused.value.length == 0)
|
||||
focused.blur();
|
||||
}, 100);
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
else // background tab
|
||||
|
||||
Reference in new issue
Block a user