More keyboard handling for dictionary

This commit is contained in:
micialware committed 2026-09-11 12:03:13 +03:00
1 parent adb6388ee2
commit d59776d713
2 files changed
+68 -63

No files matched your search

+4
View File
@@ -292,7 +292,11 @@ impl NavigatedPage<DictionaryMessage> for DictionaryState {
GotoImport => {}
SelectField(e, f, index) => {
info!("Editing word {}", e.id);
if self.word_editor.is_some() && let Some(selected) = &self.selected_cell && selected.0 != e {
self.word_editor = Some(WordEditor::new(e, self.state.clone()));
}
self.selected_cell = Some((e, f, index));
return focus(iced::widget::Id::new("editor"));
}
EditField(value) => {