[Yulup-commits] rev 20588 - public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content

andi at wyona.com andi at wyona.com
Tue Dec 5 19:17:43 CET 2006


Author: andi
Date: 2006-12-05 19:17:42 +0100 (Tue, 05 Dec 2006)
New Revision: 20588

Modified:
   public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/view.js
Log:
Handle all current key bindings in the <editor> itself as well.


Modified: public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/view.js
===================================================================
--- public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/view.js	2006-12-05 18:10:17 UTC (rev 20587)
+++ public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/view.js	2006-12-05 18:17:42 UTC (rev 20588)
@@ -2864,10 +2864,21 @@
             /* DEBUG */ dump("Yulup:view.js:CommandKeyListener.handleEvent: char code = " + String.fromCharCode(aKeyEvent.charCode) + "\n");
 
             switch (String.fromCharCode(aKeyEvent.charCode)) {
+                case "t":
+                case "T":
+                    if (aKeyEvent.shiftKey) {
+                        Editor.goDoFileOperationsCommand("cmd_yulup_savetemp");
+
+                        // we consumed this event
+                        aKeyEvent.preventDefault();
+                        return true;
+                    }
+
+                    break;
                 case "s":
                 case "S":
                     if (aKeyEvent.shiftKey) {
-                        Editor.saveDispatcher("savecms");
+                        Editor.goDoFileOperationsCommand("cmd_yulup_savecms");
 
                         // we consumed this event
                         aKeyEvent.preventDefault();
@@ -2875,10 +2886,10 @@
                     }
 
                     break;
-                case "t":
-                case "T":
+                case "c":
+                case "C":
                     if (aKeyEvent.shiftKey) {
-                        Editor.saveDispatcher("savetemp");
+                        Editor.goDoFileOperationsCommand("cmd_yulup_checkincms");
 
                         // we consumed this event
                         aKeyEvent.preventDefault();
@@ -2886,6 +2897,17 @@
                     }
 
                     break;
+                case "u":
+                case "U":
+                    if (aKeyEvent.shiftKey) {
+                        Editor.goDoFileOperationsCommand("cmd_yulup_upload");
+
+                        // we consumed this event
+                        aKeyEvent.preventDefault();
+                        return true;
+                    }
+
+                    break;
                 default:
             }
         }




More information about the Phoenix-commits mailing list