From e720f1a3c082ad091807a2be64609eb0919c218c Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 10 Jul 2020 21:07:39 +0300 Subject: [PATCH] fix #16,comparison for keyboard key --fix double typo by previous mistake in order for both Super keys to be evaluated as Super_L --- app/shortcuts/modifiertracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/shortcuts/modifiertracker.cpp b/app/shortcuts/modifiertracker.cpp index 7a80d6e77..ed46b1ae8 100644 --- a/app/shortcuts/modifiertracker.cpp +++ b/app/shortcuts/modifiertracker.cpp @@ -140,7 +140,7 @@ bool ModifierTracker::singleModifierPressed(Qt::Key key) Qt::Key ModifierTracker::normalizeKey(Qt::Key key) { - return key == Qt::Key_Super_L || key == key == Qt::Key_Super_R ? Qt::Key_Super_L : key; + return ((key == Qt::Key_Super_L || key == Qt::Key_Super_R) ? Qt::Key_Super_L : key); } void ModifierTracker::cancelMetaPressed()