mirror of
https://github.com/TaKO8Ki/gobang
synced 2024-11-11 07:10:31 +00:00
fix event order
This commit is contained in:
parent
c001bf40a5
commit
5e4c9b1734
@ -332,14 +332,12 @@ impl App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Focus::DabataseList => {
|
Focus::DabataseList => {
|
||||||
let state = self.databases.event(key)?;
|
if self.databases.event(key)?.is_consumed() {
|
||||||
|
|
||||||
if key == self.config.key_config.enter && self.databases.tree_focused() {
|
|
||||||
self.update_table().await?;
|
|
||||||
return Ok(EventState::Consumed);
|
return Ok(EventState::Consumed);
|
||||||
}
|
}
|
||||||
|
|
||||||
if state.is_consumed() {
|
if key == self.config.key_config.enter && self.databases.tree_focused() {
|
||||||
|
self.update_table().await?;
|
||||||
return Ok(EventState::Consumed);
|
return Ok(EventState::Consumed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user