From ec2ac2e80cce0c764f8099105f1e07e95cdfca8a Mon Sep 17 00:00:00 2001 From: txtsd Date: Tue, 19 Apr 2022 15:36:15 +0530 Subject: [PATCH] fix: Only trigger rename on KeyPress This is macOS specific --- launcher/ui/instanceview/InstanceDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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;