145 |
if len(key) == 1: |
if len(key) == 1: |
146 |
ppactions.insertText(c.getId(), offs, key) |
ppactions.insertText(c.getId(), offs, key) |
147 |
self.avc.setCursorOffset(offs+1) |
self.avc.setCursorOffset(offs+1) |
148 |
|
if key == "Backspace": |
149 |
|
if offs != 0: |
150 |
|
ppactions.deleteText(c.getId(), offs-1, offs) |
151 |
|
self.avc.setCursorOffset(offs-1) |
152 |
|
if key == "Delete": |
153 |
|
print 'Untested! Doesn\'t check the length' |
154 |
|
ppactions.deleteText(c.getId(), offs, offs+1) |
155 |
|
|
156 |
|
|
157 |
def scene(self, vs): |
def scene(self, vs): |
158 |
vs.map.put(background((0.4,0.5,0.8))) |
vs.map.put(background((0.4,0.5,0.8))) |