From 037d785843ae2b7c3b0b9b94ce690b3b21f3e6bc Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Thu, 9 May 2024 12:59:21 +0300 Subject: [PATCH] macOS: allow F2 for in-place edit --- d2stringtablewidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d2stringtablewidget.cpp b/d2stringtablewidget.cpp index 520cc76..a83a01b 100644 --- a/d2stringtablewidget.cpp +++ b/d2stringtablewidget.cpp @@ -36,9 +36,8 @@ void D2StringTableWidget::keyPressEvent(QKeyEvent *keyEvent) // in-place edit #ifdef Q_OS_MAC case Qt::Key_Enter: -#else - case Qt::Key_F2: #endif + case Qt::Key_F2: editInPlace(); break; case Qt::Key_Home: // Home or Ctrl+Home goes to the first cell