summaryrefslogtreecommitdiff
path: root/common/content/events.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/events.js')
-rw-r--r--common/content/events.js32
1 files changed, 2 insertions, 30 deletions
diff --git a/common/content/events.js b/common/content/events.js
index e08731f9..1eef6fd5 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -1212,36 +1212,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)