diff options
author | txtsd <thexerothermicsclerodermoid@gmail.com> | 2022-04-19 15:36:15 +0530 |
---|---|---|
committer | txtsd <thexerothermicsclerodermoid@gmail.com> | 2022-04-19 18:43:51 +0530 |
commit | ec2ac2e80cce0c764f8099105f1e07e95cdfca8a (patch) | |
tree | ee4fbe904b30b03badfe8421388e003ff6f5a9da /launcher/ui/instanceview | |
parent | 31c757d91228840d74d21506157d04d487261748 (diff) | |
download | PrismLauncher-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.cpp | 2 |
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; |