When hitting Shift-Scrollup while having the search box opened, the search
box is closed.
Regression introduced by f93263d6b4dca25416b17c96ac9a996ee2059ef6
anthonyfieroni |
Konsole |
When hitting Shift-Scrollup while having the search box opened, the search
box is closed.
Regression introduced by f93263d6b4dca25416b17c96ac9a996ee2059ef6
Open the search box, then scroll with the keyboard (e.g. with Shift-Scrollup)
The searchbox should not close.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
According to http://doc.qt.io/qt-5/qt.html#Key-enum, Qt::Key_Escape is 0x01000000 and Qt::Key_PageUp (for example) is 0x01000016. So the condition event->key() & Qt::Key_Escape will be true when hitting Shift-pageup to scroll and ends up closing the searchbox.
As a FYI, try to keep the lines < 70 columns if you can. It is annoying that phabricator doesn't give any indications of columns. If you use > 70, it makes the commit message and body multi-line.