This commit is contained in:
Kovid Goyal 2014-08-25 09:43:37 +05:30
parent bd55c5e1e2
commit 6237977646

View File

@ -738,7 +738,7 @@ class TextEdit(PlainTextEdit):
return return
if isosx and ev.modifiers() == Qt.ControlModifier and re.search(r'[a-zA-Z0-9]+', ev.text()) is not None: if isosx and ev.modifiers() == Qt.ControlModifier and re.search(r'[a-zA-Z0-9]+', ev.text()) is not None:
# For some reason Qt 5 translates Cmd+key into text on OS X # For some reason Qt 5 translates Cmd+key into text on OS X
# https://bugreports.qt-project.org/browse/QTBUG-40933 # https://bugreports.qt-project.org/browse/QTBUG-36281
ev.setAccepted(False) ev.setAccepted(False)
return return
QPlainTextEdit.keyPressEvent(self, ev) QPlainTextEdit.keyPressEvent(self, ev)