[Pkg-mozext-commits] [nostalgy] 43/235: *** empty log message ***
David Prévot
taffit at alioth.debian.org
Tue Oct 8 20:41:35 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository nostalgy.
commit 1815c66ce0059e9ff350e06c686c4d60cb5759d9
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date: Tue Oct 17 05:42:54 2006 +0000
*** empty log message ***
git-svn-id: http://nostalgy.googlecode.com/svn/trunk@43 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
CHANGES | 4 ++++
content/edit_prefs.js | 3 ++-
content/edit_prefs.xul | 2 ++
content/folders.js | 15 +++++++++++----
content/nostalgy.js | 7 +++++++
files | 11 +++++------
6 files changed, 31 insertions(+), 11 deletions(-)
diff --git a/CHANGES b/CHANGES
index b3d27b5..4e5eeac 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+Since 0.1.9
+ - make shell-completion optional (default behavior for Tab is to cycle
+ through sugestions)
+
0.1.9
- allow installation on Thunderbird 2.0b1
- select a message when entering a folder with the G key
diff --git a/content/edit_prefs.js b/content/edit_prefs.js
index f819f90..f3d80dc 100644
--- a/content/edit_prefs.js
+++ b/content/edit_prefs.js
@@ -6,7 +6,8 @@ var boolPrefs = [
"restrict_to_current_server",
"match_only_folder_name",
"sort_folders",
- "match_case_sensitive"
+ "match_case_sensitive",
+ "tab_shell_completion"
];
(function () {
diff --git a/content/edit_prefs.xul b/content/edit_prefs.xul
index 3e87160..3d704dd 100644
--- a/content/edit_prefs.xul
+++ b/content/edit_prefs.xul
@@ -57,6 +57,8 @@ shortcuts to move/copy the message to this folder.</label>
id="sort_folders" accesskey="S"/>
<checkbox label="Match folder names in a case sensitive way"
id="match_case_sensitive" accesskey="C"/>
+ <checkbox label="Tab triggers shell-like completion (otherwise, cycle through suggestions)"
+ id="tab_shell_completion" accesskey="T"/>
</groupbox>
</vbox>
diff --git a/content/folders.js b/content/folders.js
index 0bc1ebb..5266568 100644
--- a/content/folders.js
+++ b/content/folders.js
@@ -2,6 +2,7 @@ var restrict_to_current_server = false;
var match_only_folder_name = false;
var sort_folders = false;
var match_case_sensitive = false;
+var tab_shell_completion = false;
function NostalgyCrop(s) {
var len = 120;
@@ -136,10 +137,16 @@ function NostalgyProcessKeyPress(aEvent) {
var killEvent = false;
switch (aEvent.keyCode) {
case KeyEvent.DOM_VK_TAB:
- this.shell_completion = true;
- this.value = NostalgyCompleteUnique(this.value);
- this.processInput();
- killEvent = true;
+ if (tab_shell_completion) {
+ this.shell_completion = true;
+ this.value = NostalgyCompleteUnique(this.value);
+ this.processInput();
+ killEvent = true;
+ }
+ else {
+ this.clearTimer();
+ killEvent = this.keyNavigation(aEvent);
+ }
break;
case KeyEvent.DOM_VK_RETURN:
diff --git a/content/nostalgy.js b/content/nostalgy.js
index afb51ad..190db56 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -38,6 +38,10 @@ var NostalgyRules =
match_case_sensitive =
this._branch.getBoolPref("match_case_sensitive");
} catch (ex) { }
+ try {
+ tab_shell_completion =
+ this._branch.getBoolPref("tab_shell_completion");
+ } catch (ex) { }
},
unregister: function()
@@ -79,6 +83,9 @@ var NostalgyRules =
case "match_case_sensitive":
match_case_sensitive = this._branch.getBoolPref(aData);
break;
+ case "tab_shell_completion":
+ tab_shell_completion = this._branch.getBoolPref(aData);
+ break;
}
},
diff --git a/files b/files
index d899d58..081b440 100644
--- a/files
+++ b/files
@@ -1,13 +1,12 @@
-content/.#nostalgy.js.1.3
-content/thunderbirdOverlay.xul
-content/about.xhtml
content/about.xul
-content/edit_prefs.js
content/edit_prefs.xul
-content/edit_rule.js
+content/thunderbirdOverlay.xul
+content/messageOverlay.xul
+content/about.xhtml
content/edit_rule.xul
content/folders.js
-content/messageOverlay.xul
+content/edit_rule.js
+content/edit_prefs.js
content/nostalgy.js
locale/en-US/nostalgy.dtd
locale/en-US/nostalgy.properties
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git
More information about the Pkg-mozext-commits
mailing list