fix: Only trigger rename on KeyPress

This is macOS specific
This commit is contained in:
txtsd 2022-04-19 15:36:15 +05:30
parent 31c757d912
commit ec2ac2e80c
No known key found for this signature in database
GPG Key ID: 000F85679D4B6B53

View File

@ -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;