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:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -31,3 +31,5 @@ vimperator.config = {
|
||||
hostApplication: "Firefox",
|
||||
dialogs: []
|
||||
}
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4 et:
|
||||
|
||||
Reference in New Issue
Block a user