aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorEzekiel Smith <ezekielsmith@protonmail.com>2022-04-20 08:34:30 +1000
committerGitHub <noreply@github.com>2022-04-20 08:34:30 +1000
commit27e803e4a42e892862613f911cb0eac914ef9817 (patch)
tree7830ece2965c81a0c28ad7d0bea9f85a6f97e5a3 /launcher
parent405c44c9e13152dd30383fc09944a3853327cf9a (diff)
parentec2ac2e80cce0c764f8099105f1e07e95cdfca8a (diff)
downloadPrismLauncher-27e803e4a42e892862613f911cb0eac914ef9817.tar.gz
PrismLauncher-27e803e4a42e892862613f911cb0eac914ef9817.tar.bz2
PrismLauncher-27e803e4a42e892862613f911cb0eac914ef9817.zip
Merge pull request #463 from txtsd/enter_shenanigans
Only trigger macOS instance rename on KeyDown
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/instanceview/InstanceDelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/ui/instanceview/InstanceDelegate.cpp b/launcher/ui/instanceview/InstanceDelegate.cpp
index 22ff78cd..b446e39d 100644
--- a/launcher/ui/instanceview/InstanceDelegate.cpp
+++ b/launcher/ui/instanceview/InstanceDelegate.cpp
@@ -364,7 +364,7 @@ public:
{
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
auto key = keyEvent->key();
- if (key == Qt::Key_Return || key == Qt::Key_Enter)
+ if ((key == Qt::Key_Return || key == Qt::Key_Enter) && eventType == QEvent::KeyPress)
{
emit editingDone();
return true;