1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 20:15:47 +01:00

Revert "Fix some zi/zo issues."

This reverts commit b39be7b367528d9a86380c3ec5c2a6fcafd2cd22.
This commit is contained in:
Kris Maglione
2009-03-30 01:19:29 -04:00
parent 5f27bf99da
commit 2a88d8a3bf
7 changed files with 71 additions and 40 deletions

View File

@@ -1222,32 +1222,8 @@ function Events() //{{{
return;
}
if (config.name == "Muttator")
{
// we switch to -- MESSAGE -- mode for Muttator, when the main HTML widget gets focus
if (hasHTMLDocument(win) || elem instanceof HTMLAnchorElement)
{
if (config.isComposeWindow)
{
//liberator.dump("Compose editor got focus");
modes.set(modes.INSERT, modes.TEXTAREA);
}
else if (liberator.mode != modes.MESSAGE)
liberator.mode = modes.MESSAGE;
return;
}
}
if (config.name == "Xulmus")
{
// Switch to -- PLAYER -- mode for Songbird Media Player.
if (config.isPlayerWindow)
liberator.mode = modes.PLAYER;
else
liberator.mode = modes.NORMAL;
return;
}
if (config.focusChange())
return void config.focusChange(win);
urlbar = document.getElementById("urlbar");
if (elem == null && urlbar && urlbar.inputField == lastFocus)