fixed arrow keys under Linux
This commit is contained in:
+3
-1
@@ -194,8 +194,10 @@ class CodeEditor(ScrollableView):
|
|||||||
key = keydict[ord(event.unichars)]
|
key = keydict[ord(event.unichars)]
|
||||||
else:
|
else:
|
||||||
key = event.unichars
|
key = event.unichars
|
||||||
|
print 'uni', key
|
||||||
else:
|
else:
|
||||||
key = event.key.upper()
|
key = event.key#.upper()
|
||||||
|
print key
|
||||||
if key == "\b":
|
if key == "\b":
|
||||||
if self.cursorpos>0:
|
if self.cursorpos>0:
|
||||||
self.text = self.text[:self.cursorpos-1]+self.text[self.cursorpos:]
|
self.text = self.text[:self.cursorpos-1]+self.text[self.cursorpos:]
|
||||||
|
|||||||
Reference in New Issue
Block a user