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

fixed -- MESSAGE -- focus bug, work around mail.getMessages() bug with try/catch

This commit is contained in:
Martin Stubenschrott
2008-03-05 13:03:28 +00:00
parent bc5efdab0d
commit 72f274c7c6
3 changed files with 17 additions and 3 deletions

View File

@@ -928,8 +928,8 @@ vimperator.Events = function () //{{{
if (vimperator.config.name == "Muttator")
{
// 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 ((win && win.document && win.document instanceof HTMLDocument)
|| elem instanceof HTMLAnchorElement)
{
if (vimperator.mode != vimperator.modes.MESSAGE)
vimperator.mode = vimperator.modes.MESSAGE;