[Pkg-mozext-commits] [nostalgy] 48/235: doc

David Prévot taffit at alioth.debian.org
Tue Oct 8 20:41:36 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 cae52caefcaf32150e99b37fdf9e57938510e0e0
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Wed Nov 8 13:12:20 2006 +0000

    doc
    
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@48 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 CHANGES             |    2 ++
 content/about.xhtml |   31 ++++++++++++++++++++++++++-----
 content/composer.js |   25 ++++++++++++++++++++++++-
 3 files changed, 52 insertions(+), 6 deletions(-)

diff --git a/CHANGES b/CHANGES
index 7f335a9..28808f8 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,8 @@ Since 0.1.9
   - bug fix: rules with non-empty folder condition don't match when 
     restricting to current server
   - triple Escape to clear the quick search box
+  - double Escape in composer to focus on the message body
+  - Escape-A in composer to open the AttachFile dialog
 
 0.1.9
   - allow installation on Thunderbird 2.0b1
diff --git a/content/about.xhtml b/content/about.xhtml
index 5d8d4ab..aed6892 100644
--- a/content/about.xhtml
+++ b/content/about.xhtml
@@ -29,6 +29,9 @@
 
    <h3>Folder commands</h3>
 
+   <p>The following shortcuts are available from the main Thunderbird's window.
+   </p>
+
    <table border="1">
     <tr><th>Shortcut</th><th>Description</th></tr>
     <tr><td>G</td><td>Open a specific folder</td></tr>
@@ -36,6 +39,9 @@
     <tr><td>C</td><td>Copy the current message to a specific folder</td></tr>
    </table>
 
+   <p><b>Important:</b> even if the key shortcuts above are written in
+uppercase, you don't need to press Shift.</p>
+
    <p>As a remainder and a sign of Nostalgy's presence, these shortcuts are 
       displayed in Thunderbird's status bar.</p>
 
@@ -82,7 +88,8 @@
     <tr><td>Esc-F</td><td>Focus the folder pane</td></tr>
     <tr><td>Esc-M</td><td>Focus the message pane</td></tr>
     <tr><td>Esc-Esc</td><td>Focus the thread pane</td></tr>
-    <tr><td>Esc-S</td><td>Focus the quick search box</td></tr>
+    <tr><td>Esc-Esc-Esc</td><td>Focus the thread pane, clear quick search box</td></tr>
+    <tr><td>Esc-I</td><td>Focus the quick search box</td></tr>
     <tr><td>Ctrl-Left/Right</td>
          <td>Scroll the message from the thread pane</td></tr>
    </table>
@@ -115,12 +122,21 @@
    it is global.
    </p>
 
-   <h3>Auto-completion</h3>
- 
+   <h3>In the Composer</h3>
+
+   <p>Nostalgy adds some support for keyboard operations to the Composer window.</p>
+
+   <p>When typing in a header, it's possible to change easily the header
+to either "To:" or "Cc:". To do so, you need to be at the beginning
+of the input box, and simply type "to " or "cc " (with the whitespace,
+without the quotes).</p>
+
+   <p>The Esc-Esc combination focuses the message body.</p>
+
    <h3>Preferences</h3>
    
    <p>The preference dialog for Nostalgy is the place where rules are
-   defined. In addition, four switches control the way the completion
+   defined. In addition, five switches control the way the completion
    box (where folder names are proposed) is populated.</p>
 
    <p>The first switch restricts the lookup to folders on the same
@@ -142,7 +158,12 @@
    <p>The fourth switch controls whether folder names are matched
    in a case sensitive or insensitive way.</p>
 
-   <h3>About Nostalgy...</h3>
+   <p>The fifth switch controls whether the Tab key triggers shell-like
+      completion. If it is unchecked, Tab simply cycles through suggestions,
+      like the down arrow key.</p>
+
+   <hr/>
+
    <p>The Nostalgy extension has been written by Alain Frisch (<tt>Alain.Frisch at inria.fr</tt>). Comments ands suggestions are welcome!</p>
   </body>
 </html>
diff --git a/content/composer.js b/content/composer.js
index 0636fad..d0670dd 100644
--- a/content/composer.js
+++ b/content/composer.js
@@ -26,10 +26,33 @@ function nostalgy_awRecipientKeyPress(event, element) {
   nostalgy_old_awRecipientKeyPress(event, element);
 }
 
+var NostalgyEscapePressed = 0;
+
+function NostalgyEscape() {
+  NostalgyEscapePressed++;
+  var i = NostalgyEscapePressed;
+  setTimeout(
+    function(){ if (NostalgyEscapePressed==i) NostalgyEscapePressed = 0; },
+    300);
+  if (NostalgyEscapePressed == 2) setTimeout(SetMsgBodyFrameFocus,0);
+}
+
+function NostalgyKeyPress(ev) {
+  if (ev.keyCode == KeyEvent.DOM_VK_ESCAPE) { NostalgyEscape(); }
+  else if (NostalgyEscapePressed >= 1) {
+    if (ev.charCode == 97) { // A
+      goDoCommand('cmd_attachFile');
+      ev.preventDefault();
+    }
+  }
+}
+
+
 function onNostalgyLoad(){
   var tbox = gEBI("addressingWidget");
   nostalgy_old_awRecipientKeyPress = window.awRecipientKeyPress;
   window.awRecipientKeyPress = nostalgy_awRecipientKeyPress;
+  window.addEventListener("keypress", NostalgyKeyPress, false);
 }
 
-window.addEventListener("load", onNostalgyLoad, false);
+window.addEventListener("load", onNostalgyLoad, false);
\ No newline at end of file

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