aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/instanceview
diff options
context:
space:
mode:
authortxtsd <thexerothermicsclerodermoid@gmail.com>2022-04-19 15:36:15 +0530
committertxtsd <thexerothermicsclerodermoid@gmail.com>2022-04-19 18:43:51 +0530
commitec2ac2e80cce0c764f8099105f1e07e95cdfca8a (patch)
treeee4fbe904b30b03badfe8421388e003ff6f5a9da /launcher/ui/instanceview
parent31c757d91228840d74d21506157d04d487261748 (diff)
downloadPrismLauncher-ec2ac2e80cce0c764f8099105f1e07e95cdfca8a.tar.gz
PrismLauncher-ec2ac2e80cce0c764f8099105f1e07e95cdfca8a.tar.bz2
PrismLauncher-ec2ac2e80cce0c764f8099105f1e07e95cdfca8a.zip
fix: Only trigger rename on KeyPress
This is macOS specific
Diffstat (limited to 'launcher/ui/instanceview')
-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;