Merge pull request #463 from txtsd/enter_shenanigans
Only trigger macOS instance rename on KeyDown
This commit is contained in:
commit
27e803e4a4
@ -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