Unfocus grid item on escape
This commit is contained in:
parent
7a96f51cbe
commit
2472f9909b
2 changed files with 6 additions and 1 deletions
|
|
@ -743,7 +743,7 @@ impl Tab {
|
|||
}
|
||||
}
|
||||
|
||||
fn select_focus_id(&self) -> Option<widget::Id> {
|
||||
pub fn select_focus_id(&self) -> Option<widget::Id> {
|
||||
let items = self.items_opt.as_ref()?;
|
||||
let item = items.get(self.select_focus?)?;
|
||||
Some(item.button_id.clone())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue