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_category(ui: &mut UiState, index: usize) {
if index < categories::category_count() {
ui.dict_category = index;
}
}
pub fn next_category(ui: &mut UiState) {
let count = categories::category_count();
ui.dict_category = (ui.dict_category + 1) % count;