mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 13:24:05 +00:00
fix: Ctrl+F does not work in scanpopup dialog
This commit is contained in:
parent
da32be687c
commit
0a8ff8b27b
|
@ -1942,7 +1942,7 @@ void ArticleView::openSearch()
|
||||||
searchPanel->lineEdit->selectAll();
|
searchPanel->lineEdit->selectAll();
|
||||||
|
|
||||||
// Clear any current selection
|
// Clear any current selection
|
||||||
if ( !webview->selectedText().isEmpty() ) {
|
if ( webview->hasSelection() ) {
|
||||||
webview->findText( "" );
|
webview->findText( "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,6 +113,7 @@ ScanPopup::ScanPopup( QWidget * parent,
|
||||||
connect( definition, &ArticleView::typingEvent, this, &ScanPopup::typingEvent );
|
connect( definition, &ArticleView::typingEvent, this, &ScanPopup::typingEvent );
|
||||||
|
|
||||||
openSearchAction.setShortcut( QKeySequence( "Ctrl+F" ) );
|
openSearchAction.setShortcut( QKeySequence( "Ctrl+F" ) );
|
||||||
|
addAction( &openSearchAction );
|
||||||
connect( &openSearchAction, &QAction::triggered, definition, &ArticleView::openSearch );
|
connect( &openSearchAction, &QAction::triggered, definition, &ArticleView::openSearch );
|
||||||
|
|
||||||
wordListDefaultFont = ui.translateBox->completerWidget()->font();
|
wordListDefaultFont = ui.translateBox->completerWidget()->font();
|
||||||
|
|
Loading…
Reference in a new issue