From 795173b662c25c90f26c666fcc60f11c1c562a30 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Wed, 9 Mar 2022 19:42:30 -0500 Subject: [PATCH] Added logic to force raise of Qt family keyboard dialog to top of window stack after key map dialog closes. Fixes irregular window focus issue on mac OS. --- src/drivers/Qt/FamilyKeyboard.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/drivers/Qt/FamilyKeyboard.cpp b/src/drivers/Qt/FamilyKeyboard.cpp index 95d85157..ff512c78 100644 --- a/src/drivers/Qt/FamilyKeyboard.cpp +++ b/src/drivers/Qt/FamilyKeyboard.cpp @@ -345,6 +345,9 @@ void FamilyKeyboardWidget::ctxMapPhysicalKey(void) if ( fkbWin ) { fkbWin->updateBindingList(); + fkbWin->show(); + fkbWin->activateWindow(); + fkbWin->raise(); } } //********************************************************************************* @@ -1018,6 +1021,10 @@ void FKBConfigDialog::keyTreeItemActivated(QTreeWidgetItem *item, int column) mapDialog->enterButtonLoop(); updateBindingList(); + + show(); + activateWindow(); + raise(); } //---------------------------------------------------------------------------- int FKBConfigDialog::getButtonIndexFromName( const char *buttonName )