/[fenfire]/fenfire/org/fenfire/fenpdf/actions/keyboard.py
ViewVC logotype

Diff of /fenfire/org/fenfire/fenpdf/actions/keyboard.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by benja, Sun Sep 7 16:03:28 2003 UTC revision 1.13 by tjl, Thu Sep 11 17:26:08 2003 UTC
# Line 95  class KeyActions: Line 95  class KeyActions:
95          if offs >= 1:          if offs >= 1:
96              p('delete:', offs)              p('delete:', offs)
97              alphContent.deleteText(node, offs - 1, offs)              alphContent.deleteText(node, offs - 1, offs)
98              offs = cur.setCursorOffset(offs - 1)              cur.setCursorOffset(offs - 1)
             text = alphContent.getText(self.fenPDF.fen.constgraph, node)  
             if offs == 0 and len(text) == 0:  
                 # If text went to nothingness  
                 if self.fenPDF.structure.structLink.isLinked(node):  
                     # Kludge workaround: insert # if it is linked  
                     self.fenPDF.structure.alphContent.insertText(node, 0, "#")  
                 else:  
                     # Delete the note  
                     self.fenPDF.structure.structLink.detach(node)  
                     self.fenPDF.structure.canvas2d.removeNode(node)  
                     cur.setAccursed(None)  
99    
100          self.fenPDF.animation.regenerateVS()          self.fenPDF.animation.regenerateVS()
101    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26