fenfire-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ff-cvs] fenfire/org/fenfire/demo mm.py


From: Asko Soukka
Subject: [ff-cvs] fenfire/org/fenfire/demo mm.py
Date: Wed, 27 Aug 2003 04:10:59 -0400

CVSROOT:        /cvsroot/fenfire
Module name:    fenfire
Branch:         
Changes by:     Asko Soukka <address@hidden>    03/08/27 04:10:59

Modified files:
        org/fenfire/demo: mm.py 

Log message:
        fix clibpoard keybindings

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/fenfire/fenfire/org/fenfire/demo/mm.py.diff?tr1=1.47&tr2=1.48&r1=text&r2=text

Patches:
Index: fenfire/org/fenfire/demo/mm.py
diff -u fenfire/org/fenfire/demo/mm.py:1.47 fenfire/org/fenfire/demo/mm.py:1.48
--- fenfire/org/fenfire/demo/mm.py:1.47 Wed Aug 27 03:27:34 2003
+++ fenfire/org/fenfire/demo/mm.py      Wed Aug 27 04:10:59 2003
@@ -417,7 +417,7 @@
         
     def key(self, key):
         self.context.setSlowAnimation()
-#        p("Entered key: ", key)
+        p("Entered key: ", key)
         if key == 'Escape' or key == 'Tab':
             """Removes the focus from the current accursed node and sets no 
new accursed node."""
             self.context.c.setAccursed(None)
@@ -469,42 +469,43 @@
         elif key == 'Right':
             """Move the cursor a character to the right."""
             self.context.c.moveRight()
-        if key == "Ctrl-HomE":
+        elif key == "Ctrl-HomE":
             """Move the cursor into the beginning of the text."""
             self.context.c.moveBegin()
-        if key == "Ctrl-EnD":
+        elif key == "Ctrl-EnD":
             """Move the cursor to the end of the text."""
             self.context.c.moveEnd()
-        if key == "Ctrl-C" or "Ctrl-K":
+        elif key == "Ctrl-C" or key == "Ctrl-K":
             """Copy the content of the node into the clipboard."""
             text = self.alphContent.getText(fen.graph, 
self.context.c.getAccursed())
             PUIClipboard.puiCopy(text)
-        if key == "Ctrl-V" or key=="Ctrl-Y":
+            print 'PUI copied:', PUIClipboard.getText()
+        elif key == "Ctrl-V" or key =="Ctrl-Y":
             """Paste the content the clipboard just after the cursor."""
+            print 'PUI to paste:', PUIClipboard.getText()
             self.context.insertText(PUIClipboard.getText())
-            print 'PUI', PUIClipboard.getText()
-        if key == "Home" or key == "Ctrl-A":
+        elif key == "Home" or key == "Ctrl-A":
             """Move the cursor into the beginning of the line."""
             self.context.c.moveBeginLine()
-        if key == "End" or key == "Ctrl-E":
+        elif key == "End" or key == "Ctrl-E":
             """Move the cursor to the end of the line."""
             self.context.c.moveEndLine()
-        if key == "Ctrl-2":
+        elif key == "Ctrl-2":
             """Set 2D filleting."""
             self.view.depthColor = 0
             self.view.fillet3d = 0
             self.main.floatingView.depthColor = 0
             self.main.floatingView.fillet3d = 0
-        if key == "Ctrl-3":
+        elif key == "Ctrl-3":
             """Set 3D filleting."""
             self.view.depthColor = 1
             self.view.fillet3d = 1
             self.main.floatingView.depthColor = 1
             self.main.floatingView.fillet3d = 1
-        if key == "Ctrl-B":
+        elif key == "Ctrl-B":
             """Buffer accursed node."""
             self.context.components.append(self.context.c.getAccursed())
-        if key == "Ctrl-0":
+        elif key == "Ctrl-0":
             """Set calibrating state of custom controller on / off."""
             if self.calibrating and self.naxes: 
                 p("Custom controller calibrated.")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]