Skip to content

Commit

Permalink
fix: work around to fix ctrl+F in macos popup
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jul 6, 2024
1 parent 471e830 commit 55f8a31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1774,9 +1774,10 @@ ArticleView * MainWindow::createNewTab( bool switchToIt, QString const & name )
connect( view, &ArticleView::zoomOut, this, &MainWindow::zoomout );
connect( view, &ArticleView::saveBookmarkSignal, this, &MainWindow::addBookmarkToFavorite );

connect( ui.searchInPageAction, &QAction::triggered, this, [ this, &view ]() {
connect( ui.searchInPageAction, &QAction::triggered, this, [ this, view ]() {
#ifdef Q_OS_MACOS
if ( scanPopup->isActiveWindow() ) {
#workaround to fix macos popup page search Ctrl + F
if ( scanPopup && scanPopup->isActiveWindow() ) {
scanPopup->openSearch();
return;
}
Expand Down

0 comments on commit 55f8a31

Please sign in to comment.