Skip to content

Change focus #895

Answered by ArthurSonzogni
SLHome asked this question in Q&A
Discussion options

You must be logged in to vote

What about:

auto windows = Container::Stacked({
    window_1,
    window_2,
    window_3,
    window_4,
    window_5,
});

windows |= CatchEvent([=](Event event) {
  if (event == Event::Tab) {
    windows->SetActiveChild(windows->ChildAt(1));
    return true;
  }
  
  return false;
});

I guess this could be added as a builtin. Do you want to open a new feature request about this?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SLHome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants