diff options
| author | Wang Yu <[email protected]> | 2025-07-24 14:11:16 +0800 |
|---|---|---|
| committer | yu wang <[email protected]> | 2025-07-28 01:45:45 +0000 |
| commit | 3597cd82072365fdf144f9985a69d6fe892643be (patch) | |
| tree | 1a6e36f345e98ec541e5f96cce9a17b55e06e43e /src/search/bar.cpp | |
| parent | b1b743c59c48f54378abc46ff055d221b68cb433 (diff) | |
search/bar: Use correct parent method in keyPressEvent
Changed QWidget::keyReleaseEvent to QWidget::keyPressEvent to
match the actual event being handled.
Diffstat (limited to 'src/search/bar.cpp')
| -rw-r--r-- | src/search/bar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search/bar.cpp b/src/search/bar.cpp index 18707ef23..794274cef 100644 --- a/src/search/bar.cpp +++ b/src/search/bar.cpp @@ -275,7 +275,7 @@ void Bar::updateState(const std::shared_ptr<const DolphinQuery> &dolphinQuery) void Bar::keyPressEvent(QKeyEvent *event) { - QWidget::keyReleaseEvent(event); + QWidget::keyPressEvent(event); if (event->key() == Qt::Key_Escape) { if (m_searchTermEditor->text().isEmpty()) { setVisible(false, WithAnimation); |
