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

[muttator] fixed composer loading

This commit is contained in:
Martin Stubenschrott
2008-09-23 22:05:58 +00:00
parent 23086014e2
commit a7c7719c25
2 changed files with 1 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ liberator.config = { //{{{
defaults: { guioptions: "f" }, defaults: { guioptions: "f" },
guioptions: { m: ["mail-toolbar-menubar2"], T: ["mail-bar2"], f: ["folderPaneBox", "folderpane_splitter"], F: ["folderPaneHeader"] }, guioptions: { m: ["mail-toolbar-menubar2"], T: ["mail-bar2"], f: ["folderPaneBox", "folderpane_splitter"], F: ["folderPaneHeader"] },
get isComposeWindow() { return window.wintype == "msgcompose"; },
get browserModes() { return [liberator.modes.MESSAGE]; }, get browserModes() { return [liberator.modes.MESSAGE]; },
get mainWidget() { // focusContent() focuses this widget get mainWidget() { // focusContent() focuses this widget
return this.isComposeWindow ? return this.isComposeWindow ?
@@ -44,7 +45,6 @@ liberator.config = { //{{{
}, },
get mainWindowID() { return this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow"; }, get mainWindowID() { return this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow"; },
get visualbellWindow() { return document.getElementById(this.mainWindowID); }, get visualbellWindow() { return document.getElementById(this.mainWindowID); },
isComposeWindow: false,
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"], autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],
["PageLoadPre", "Triggered after a page load is initiated"], ["PageLoadPre", "Triggered after a page load is initiated"],
@@ -110,7 +110,6 @@ liberator.config = { //{{{
{ {
// don't wait too long when selecting new messages // don't wait too long when selecting new messages
// GetThreadTree()._selectDelay = 300; // TODO: make configurable // GetThreadTree()._selectDelay = 300; // TODO: make configurable
this.isComposeWindow = window.wintype == "msgcompose";
// 0: never automatically edit externally // 0: never automatically edit externally
// 1: automatically edit externally when message window is shown the first time // 1: automatically edit externally when message window is shown the first time

View File

@@ -71,7 +71,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
<keyset id="mainKeyset"> <keyset id="mainKeyset">
<key id="key_open_vimbar" key=":" oncommand="liberator.commandline.open(':', '', liberator.modes.EX);" modifiers=""/> <key id="key_open_vimbar" key=":" oncommand="liberator.commandline.open(':', '', liberator.modes.EX);" modifiers=""/>
<key id="key_send" key="y" oncommand="alert('y');" modifiers=""/>
<key id="key_stop" keycode="VK_ESCAPE" oncommand="liberator.events.onEscape();"/> <key id="key_stop" keycode="VK_ESCAPE" oncommand="liberator.events.onEscape();"/>
<!-- other keys are handled inside the event loop in events.js --> <!-- other keys are handled inside the event loop in events.js -->
</keyset> </keyset>