Ladybird/Qt: Find the previous search match when the shift key is held

This commit is contained in:
Timothy Flynn 2024-05-30 13:57:51 -04:00 committed by Tim Flynn
parent b5d80013ea
commit a73ac6aa3f
Notes: sideshowbarker 2024-07-18 08:59:31 +09:00

View file

@ -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();