mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 18:09:59 +03:00
Merge pull request #463 from txtsd/enter_shenanigans
Only trigger macOS instance rename on KeyDown
This commit is contained in:
commit
27e803e4a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue