1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 13:52:28 +01:00

fixed MOW for muttator

This commit is contained in:
Martin Stubenschrott
2008-03-01 01:15:09 +00:00
parent 48a79ca3cf
commit d7364fbe72
3 changed files with 10 additions and 8 deletions

View File

@@ -922,9 +922,9 @@ vimperator.Events = function () //{{{
if (vimperator.config.name == "Muttator")
{
// we switch to -- MESSAGE -- mode for muttator, when an HTML document gets focus
if ((win && win.document && win.document instanceof HTMLDocument) ||
elem instanceof HTMLAnchorElement)
// we switch to -- MESSAGE -- mode for muttator, when the main HTML widget gets focus
//if ((win && win.document && win.document instanceof HTMLDocument) ||
if ((win && win == window.content) || elem instanceof HTMLAnchorElement)
{
if (vimperator.mode != vimperator.modes.MESSAGE)
vimperator.mode = vimperator.modes.MESSAGE;