use QKeySequence to detect platform dependent copy keys
This commit is contained in:
parent
968286a1cf
commit
6ad1d752fe
@ -368,7 +368,7 @@ class TableWidget(QtGui.QTableWidget):
|
|||||||
self.contextMenu.popup(ev.globalPos())
|
self.contextMenu.popup(ev.globalPos())
|
||||||
|
|
||||||
def keyPressEvent(self, ev):
|
def keyPressEvent(self, ev):
|
||||||
if ev.key() == QtCore.Qt.Key_C and ev.modifiers() == QtCore.Qt.ControlModifier:
|
if ev.matches(QtGui.QKeySequence.Copy):
|
||||||
ev.accept()
|
ev.accept()
|
||||||
self.copySel()
|
self.copySel()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user