Replace QKeySequence::Cancel (#226)

This commit is contained in:
lupoDharkael
2018-05-17 17:45:25 +02:00
parent 0bd0ab9ba4
commit 09921d507c

View File

@@ -125,7 +125,7 @@ QColor ColorPickerWidget::grabPixmapColor(const QPoint &p) {
}
bool ColorPickerWidget::handleKeyPress(QKeyEvent *e) {
if (e->matches(QKeySequence::Cancel)) {
if (e->key() == Qt::Key_Escape) {
releaseColorGrab();
updateColor(m_colorBackup);
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {