MiRCARTToolText.py: fix non-US ASCII character handling.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-01-10 04:31:20 +01:00
parent 1b00bb3b2f
commit b91ba78abd

View File

@ -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()