Skip to content

Commit

Permalink
fix: set shortcut context
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jul 5, 2024
1 parent 297795a commit da2500a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/scanpopup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ ScanPopup::ScanPopup( QWidget * parent,
connect( definition, &ArticleView::typingEvent, this, &ScanPopup::typingEvent );

openSearchAction.setShortcut( QKeySequence( "Ctrl+F" ) );
openSearchAction.setShortcutContext( Qt::WidgetWithChildrenShortcut );
addAction( &openSearchAction );
connect( &openSearchAction, &QAction::triggered, definition, &ArticleView::openSearch );

Expand Down

0 comments on commit da2500a

Please sign in to comment.