Mark the floating jump buttons as overlays in the Tab chain

This commit is contained in:
Reza Bakhshi Laktasaraei
2026-08-15 15:22:54 +03:30
committed by John Preston
parent 4fc925acd7
commit bcf085bb6c
2 changed files with 5 additions and 2 deletions

View File

@@ -1192,8 +1192,10 @@ void Widget::scrollToDefaultChecked(bool verytop) {
void Widget::setupScrollUpButton() {
// The button floats over the bottom of the list, but it is created long
// before it, so the scroll has to order the two by position.
// before it, so the scroll has to order the two - and it is an overlay,
// not something laid out beside the list.
_scroll->setVisualTabOrder(true);
_scrollToTop->setVisualTabOrderOverlay(true);
_scrollToTop->setClickedCallback([=] { scrollToDefaultChecked(); });
_scrollToTop->setAccessibleName(tr::lng_sr_scroll_to_top(tr::now));

View File

@@ -81,8 +81,9 @@ CornerButtons::CornerButtons(
_column.setAttribute(Qt::WA_TransparentForMouseEvents);
_column.show();
_column.setVisualTabOrder(true);
_column.setVisualTabOrderOverlay(true);
if (const auto scroll = qobject_cast<Ui::RpWidget*>(_parent.get())) {
// Without this the column, created before the list, would come first.
// Otherwise the column, created before the list, would come first.
scroll->setVisualTabOrder(true);
}