UI: Avoid looping at end of window content

This commit is contained in:
Luke Street
2026-05-04 11:49:12 -06:00
parent f61bd3e5ad
commit 5121437bcf
3 changed files with 7 additions and 3 deletions
+3
View File
@@ -198,6 +198,9 @@ bool Window::handle_content_nav(Rml::Event& event, NavCommand cmd) noexcept {
return true;
}
return false;
} else if (cmd == NavCommand::Down) {
// End of content, avoid looping
return true;
} else if (cmd == NavCommand::Cancel) {
int currentComponent = -1;
for (int i = 0; i < mContentComponents.size(); ++i) {