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