From ff5abe1d1c1cff5f80b619504ed56f15c3e83371 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Tue, 29 Apr 2008 17:55:36 +0000 Subject: [PATCH] made selecting messages in muttator faster when holding j or k --- content/mail.js | 4 +++- content/muttator.js | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/content/mail.js b/content/mail.js index 1e37cd21..f04fe2d4 100644 --- a/content/mail.js +++ b/content/mail.js @@ -382,7 +382,9 @@ liberator.Mail = function () if (count == 0) { - gDBView.selectMsgByKey(key); + // gDBView.selectMsgByKey(key); + gDBView.selection.timedSelect(i, GetThreadTree()._selectDelay || 500); + GetThreadTree().treeBoxObject.ensureRowIsVisible(i); return; } } diff --git a/content/muttator.js b/content/muttator.js index c8f8126a..2ca2b317 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -87,6 +87,9 @@ liberator.config = { liberator.mappings.add([liberator.modes.NORMAL], ["o"], "Open a message", function () { liberator.commandline.open(":", "open ", liberator.modes.EX); }); + + // don't wait too long when selecting new messages + GetThreadTree()._selectDelay = 250; // TODO: make configurable } }