[Pkg-mozext-commits] [nostalgy] 07/235: *** empty log message ***

David Prévot taffit at alioth.debian.org
Tue Oct 8 20:41:25 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 70d043fff03a87de548b8c8cf25edcc357cf225c
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Tue Jul 18 15:53:27 2006 +0000

    *** empty log message ***
    
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@7 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 CHANGES                        |    8 ++++++++
 TODO                           |    1 -
 chrome.manifest                |    1 +
 content/overlay.js             |   20 ++++++++++++++++++++
 content/thunderbirdOverlay.xul |    5 +++--
 locale/en-US/nostalgy.dtd      |    2 ++
 6 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/CHANGES b/CHANGES
index 19b44c7..679599f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,11 @@
+0.1.5
+  - add the commands:
+    L: hide/show the folder pane
+    Ctrl-Escape: set focus on the folder pane
+    Alt-Escape: set focus on the message pane
+    double Escape (within 200ms): set focus on the thread pane
+  - allow the (S)ave and (C)opy to work from a standalone message window
+
 0.1.4
   - fixed this bug: folders where duplicated in the completion
     box as many times as there were POP3 accounts stored together
diff --git a/TODO b/TODO
index 317efd0..e0b75fc 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,2 @@
-- Allow the "S" and "C" commands to work in the Message window.
 - Allow the user to define keyboard shortcuts to save messages to
   specified folders with a single keystroke.
\ No newline at end of file
diff --git a/chrome.manifest b/chrome.manifest
index 0c6743e..30b6105 100644
--- a/chrome.manifest
+++ b/chrome.manifest
@@ -2,3 +2,4 @@ content	nostalgy	content/
 locale	nostalgy	en-US	locale/en-US/
 skin	nostalgy	classic/1.0	skin/
 overlay	chrome://messenger/content/messenger.xul	chrome://nostalgy/content/thunderbirdOverlay.xul
+overlay	chrome://messenger/content/messageWindow.xul	chrome://nostalgy/content/messageOverlay.xul
diff --git a/content/overlay.js b/content/overlay.js
index d897978..61e7234 100644
--- a/content/overlay.js
+++ b/content/overlay.js
@@ -59,6 +59,11 @@ function onNostalgyLoad() {
  NostalgyHide();
 }
 
+function NostalgyCollapseFolderPane() {
+ var fp = document.getElementById("folderPaneBox");
+ fp.collapsed = !fp.collapsed;
+}
+
 function NostalgyCmd(lab,cmd) {
  var nostalgyBox = document.getElementById("statusbar-nostalgy");
  focus_saved = document.commandDispatcher.focusedElement;
@@ -122,6 +127,7 @@ function IterateFolders(f) {
 
  var servers= amService.allServers;
  var seen = { };
+ var i;
  for (i = 0; i < servers.Count(); i++) {
   var server = servers.GetElementAt(i).
                QueryInterface(Components.interfaces.nsIMsgIncomingServer);
@@ -186,4 +192,18 @@ function NostalgyMark() {
 }
 
 
+var NostalgyLastEscapeTimeStamp = 0;
+
+function onNostalgyKeyPress(ev) {
+  if (ev.keyCode == 27) { 
+    if (ev.ctrlKey) { SetFocusFolderPane(); }
+    else if (ev.altKey) { SetFocusMessagePane(); }
+    else 
+    if (ev.timeStamp - NostalgyLastEscapeTimeStamp < 200) 
+     { SetFocusThreadPane(); }
+     else { NostalgyLastEscapeTimeStamp = ev.timeStamp; }
+  }
+}
+
 window.addEventListener("load", onNostalgyLoad, false);
+if (SetFocusFolderPane) window.addEventListener("keypress", onNostalgyKeyPress, false);
\ No newline at end of file
diff --git a/content/thunderbirdOverlay.xul b/content/thunderbirdOverlay.xul
index a1823ac..3932d05 100644
--- a/content/thunderbirdOverlay.xul
+++ b/content/thunderbirdOverlay.xul
@@ -2,13 +2,14 @@
 <!DOCTYPE overlay SYSTEM "chrome://nostalgy/locale/nostalgy.dtd">
 <overlay id="nostalgy-overlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-  <script src="overlay.js"/>
+
+ <script src="overlay.js"/>
 
  <keyset id="mailKeys">
   <key key="G" oncommand="NostalgyCmd('&nostalgy.go-memo;', ShowFolder);"/>
   <key key="S" oncommand="NostalgyCmd('&nostalgy.move-memo;', MoveToFolder);"/>
   <key key="C" oncommand="NostalgyCmd('&nostalgy.copy-memo;', CopyToFolder);"/>
-  <key key="X" oncommand="NostalgyMark();"/>
+  <key key="L" oncommand="NostalgyCollapseFolderPane();"/>
  </keyset>
 
 
diff --git a/locale/en-US/nostalgy.dtd b/locale/en-US/nostalgy.dtd
index 39919e8..a906244 100644
--- a/locale/en-US/nostalgy.dtd
+++ b/locale/en-US/nostalgy.dtd
@@ -2,3 +2,5 @@
 <!ENTITY nostalgy.copy-memo     "Copy messages to:">
 <!ENTITY nostalgy.go-memo       "Go to folder:">
 <!ENTITY nostalgy.memo          "(G)o (S)ave (C)opy">
+<!ENTITY nostalgy.memomessage   "(S)ave (C)opy">
+

-- 
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