fixed arrow keys under Linux
This commit is contained in:
parent
8104b1e585
commit
6fa8648b0d
|
|
@ -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:]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue