Skip to content

Commit

Permalink
ignore invisible widgets during tab/shift+tab navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed May 10, 2024
1 parent 8cbe21b commit 8cc4378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fyrox-ui/src/navigation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl Control for NavigationLayer {
for descendant in ui.traverse_handle_iter(child) {
let descendant_ref = ui.node(descendant);

if !*descendant_ref.tab_stop {
if !*descendant_ref.tab_stop && descendant_ref.is_globally_visible() {
if let Some(tab_index) = *descendant_ref.tab_index {
tab_list.push(OrderedHandle {
tab_index,
Expand Down

0 comments on commit 8cc4378

Please sign in to comment.