Replies: 1 comment 4 replies
-
what about using: Alternatively, you could focus an element close to the end. return Renderer(container, [=] {
return vbox({
menu->Render(),
text("the end") | focus
}) | vscroll_indicator | frame;
}); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am building an application with various panes that receive external input in the form of either plain text lines or JSON-like input. My current approach is using a
Menu
, but I struggle implementing a "follow-focus" mode where the focus is on the last entry in a scrollable pane. Here's one example:If I just add
| focus
afterframe
, then the focus always remains in the middle.How do I go about this?
(This is related to #211 (reply in thread), but there we add a dummy text element. I'm not sure how to simply focus the last element in the list.)
Beta Was this translation helpful? Give feedback.
All reactions