mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Mark the floating jump buttons as overlays in the Tab chain
This commit is contained in:
committed by
John Preston
parent
4fc925acd7
commit
bcf085bb6c
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user