mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird/Qt: Find the previous search match when the shift key is held
This commit is contained in:
parent
b5d80013ea
commit
a73ac6aa3f
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/a73ac6aa3f Pull-request: https://github.com/SerenityOS/serenity/pull/24489 Reviewed-by: https://github.com/nico ✅
1 changed files with 4 additions and 1 deletions
|
@ -77,7 +77,10 @@ void FindInPageWidget::keyPressEvent(QKeyEvent* event)
|
|||
setVisible(false);
|
||||
break;
|
||||
case Qt::Key_Return:
|
||||
m_next_button->click();
|
||||
if (event->modifiers().testFlag(Qt::ShiftModifier))
|
||||
m_previous_button->click();
|
||||
else
|
||||
m_next_button->click();
|
||||
break;
|
||||
default:
|
||||
event->ignore();
|
||||
|
|
Loading…
Reference in a new issue