Feat: early mouse support

This commit is contained in:
2026-02-14 16:26:29 +01:00
parent b2871ac251
commit 10ca567ac5
23 changed files with 1256 additions and 285 deletions

View File

@@ -8,6 +8,12 @@ pub fn toggle_focus(ui: &mut UiState) {
};
}
pub fn select_topic(ui: &mut UiState, index: usize) {
if index < docs::topic_count() {
ui.help_topic = index;
}
}
pub fn next_topic(ui: &mut UiState, n: usize) {
let count = docs::topic_count();
ui.help_topic = (ui.help_topic + n) % count;