More keyboard handling for dictionary
This commit is contained in:
1 parent
adb6388ee2
commit
d59776d713
2 files changed
+68
-63
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user