fixed arrow keys under Linux

This commit is contained in:
Skyler Lehmkuhl 2013-01-11 19:51:37 -05:00
parent 8104b1e585
commit 6fa8648b0d
1 changed files with 3 additions and 1 deletions

View File

@ -194,8 +194,10 @@ class CodeEditor(ScrollableView):
key = keydict[ord(event.unichars)]
else:
key = event.unichars
print 'uni', key
else:
key = event.key.upper()
key = event.key#.upper()
print key
if key == "\b":
if self.cursorpos>0:
self.text = self.text[:self.cursorpos-1]+self.text[self.cursorpos:]