mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
MiRCARTToolText.py: fix non-US ASCII character handling.
This commit is contained in:
parent
f9f910160f
commit
12027bc6b5
@ -23,7 +23,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
from MiRCARTTool import MiRCARTTool
|
from MiRCARTTool import MiRCARTTool
|
||||||
import string, wx
|
import wx
|
||||||
|
|
||||||
class MiRCARTToolText(MiRCARTTool):
|
class MiRCARTToolText(MiRCARTTool):
|
||||||
"""XXX"""
|
"""XXX"""
|
||||||
@ -36,8 +36,6 @@ class MiRCARTToolText(MiRCARTTool):
|
|||||||
if keyModifiers != wx.MOD_NONE \
|
if keyModifiers != wx.MOD_NONE \
|
||||||
and keyModifiers != wx.MOD_SHIFT:
|
and keyModifiers != wx.MOD_SHIFT:
|
||||||
return True
|
return True
|
||||||
elif not keyChar in string.printable:
|
|
||||||
return True
|
|
||||||
else:
|
else:
|
||||||
if self.textColours == None:
|
if self.textColours == None:
|
||||||
self.textColours = brushColours.copy()
|
self.textColours = brushColours.copy()
|
||||||
|
Loading…
Reference in New Issue
Block a user