fix: Only trigger rename on KeyPress
This is macOS specific
This commit is contained in:
parent
31c757d912
commit
ec2ac2e80c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user