1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 00:27:57 +01:00

added vimperator.config.mainWidget

This commit is contained in:
Martin Stubenschrott
2008-02-05 02:51:58 +00:00
parent c9fdb64ba1
commit f2d1334ce7
4 changed files with 10 additions and 2 deletions

View File

@@ -392,7 +392,7 @@ vimperator.Events = function () //{{{
doc.pageIsFullyLoaded = 1;
// code which is only relevant if the page load is the current tab goes here:
if (doc == getBrowser().selectedBrowser.contentDocument)
if (!vimperator.tabs || doc == getBrowser().selectedBrowser.contentDocument)
{
// we want to stay in command mode after a page has loaded
// XXX: Does this still causes window map events which is _very_ annoying

View File

@@ -29,5 +29,10 @@ the terms of any one of the MPL, the GPL or the LGPL.
vimperator.config = {
name: "Muttator",
hostApplication: "Thunderbird",
// this widget is focused when focusContent() is called
get mainWidget() { return GetThreadTree(); },
dialogs: []
}
// vim: set fdm=marker sw=4 ts=4 et:

View File

@@ -163,7 +163,8 @@ const vimperator = (function () //{{{
if (window == ww.activeWindow && document.commandDispatcher.focusedElement && clearFocusedElement)
document.commandDispatcher.focusedElement.blur();
content.focus();
var elem = vimperator.config.mainWidget || content;
elem.focus();
},
// partial sixth level expression evaluation

View File

@@ -31,3 +31,5 @@ vimperator.config = {
hostApplication: "Firefox",
dialogs: []
}
// vim: set fdm=marker sw=4 ts=4 et: