mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:07:59 +01:00
Fix mailbird.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// This work is licensed for reuse under an MIT license. Details are
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
|
||||
const config = Module("config", ConfigBase, {
|
||||
const Config = Module("config", ConfigBase, {
|
||||
init: function () {
|
||||
// don't wait too long when selecting new messages
|
||||
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
|
||||
@@ -116,16 +116,6 @@ const config = Module("config", ConfigBase, {
|
||||
// they are sorted by relevance, not alphabetically
|
||||
helpFiles: ["intro.html", "version.html"],
|
||||
|
||||
get ignoreKeys() {
|
||||
delete this.ignoreKeys;
|
||||
return this.ignoreKeys = {
|
||||
"<Return>": modes.NORMAL | modes.INSERT,
|
||||
"<Space>": modes.NORMAL | modes.INSERT,
|
||||
"<Up>": modes.NORMAL | modes.INSERT,
|
||||
"<Down>": modes.NORMAL | modes.INSERT
|
||||
}
|
||||
},
|
||||
|
||||
modes: [
|
||||
["MESSAGE", { char: "m" }],
|
||||
["COMPOSE"]
|
||||
@@ -148,7 +138,7 @@ const config = Module("config", ConfigBase, {
|
||||
return document.getElementById("appcontent").boxObject.height;
|
||||
},
|
||||
|
||||
get scripts() this.isComposeWindow() ? ["compose/compose.js"] : [
|
||||
get scripts() this.isComposeWindow ? ["compose/compose.js"] : [
|
||||
"addressbook.js",
|
||||
"mail.js",
|
||||
"tabs.js",
|
||||
@@ -165,6 +155,14 @@ const config = Module("config", ConfigBase, {
|
||||
function () { window.openOptionsDialog(); },
|
||||
{ argCount: "0" });
|
||||
},
|
||||
modes: function () {
|
||||
this.ignoreKeys = {
|
||||
"<Return>": modes.NORMAL | modes.INSERT,
|
||||
"<Space>": modes.NORMAL | modes.INSERT,
|
||||
"<Up>": modes.NORMAL | modes.INSERT,
|
||||
"<Down>": modes.NORMAL | modes.INSERT
|
||||
};
|
||||
},
|
||||
optons: function () {
|
||||
// FIXME: comment obviously incorrect
|
||||
// 0: never automatically edit externally
|
||||
@@ -186,6 +184,6 @@ const config = Module("config", ConfigBase, {
|
||||
getter: function () MailOfflineMgr.isOnline()
|
||||
});
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4 et:
|
||||
|
||||
Reference in New Issue
Block a user