fix: add standard FindNext/Previous shortcuts to search panel

* Ctrl+G & Ctrl+Shift+G or F3 & Shift+F3 depends on platform.
This commit is contained in:
shenleban tongying 2023-04-28 01:56:04 -04:00 committed by xiaoyifang
parent 2f6cb3c5d8
commit 3550362cac

View file

@ -12,10 +12,12 @@ SearchPanel::SearchPanel( QWidget * parent ): QWidget( parent )
previous = new QPushButton( this );
previous->setIcon( QIcon( ":/icons/previous.svg" ) );
previous->setText( tr( "&Previous" ) );
previous->setShortcut( QKeySequence( tr( "Ctrl+Shift+G" ) ) );
next = new QPushButton( this );
next->setIcon( QIcon( ":/icons/next.svg" ) );
next->setText( tr( "&Next" ) );
next->setShortcut( QKeySequence( tr( "Ctrl+G" ) ) );
highlightAll = new QCheckBox( this );
highlightAll->setIcon( QIcon( ":/icons/highlighter.png" ) );