diff --git a/dodo/app.py b/dodo/app.py index e01369d..04ee8d6 100644 --- a/dodo/app.py +++ b/dodo/app.py @@ -172,6 +172,9 @@ def show_help(self) -> None: def raise_panel(self, p: panel.Panel) -> None: self.tabs.setCurrentWidget(p) + # raise_() brings the window to the front; activateWindow() gives it + # keyboard focus. On macOS activateWindow() alone is not enough. + self.main_window.raise_() self.main_window.activateWindow() # self.main_window.setWindowState(self.main_window.windowState() ^ Qt.WindowActive)