Select location text on ctrl+l; deselect on esc, click, or context menu
This commit is contained in:
parent
a9daddb1b0
commit
d8668cae79
3 changed files with 26 additions and 8 deletions
|
|
@ -1035,6 +1035,12 @@ impl Application for App {
|
|||
return Command::none();
|
||||
}
|
||||
|
||||
if self.tab.edit_location.is_some() {
|
||||
// Close location editing if enabled
|
||||
self.tab.edit_location = None;
|
||||
return Command::none();
|
||||
}
|
||||
|
||||
let had_focused_button = self.tab.select_focus_id().is_some();
|
||||
if self.tab.select_none() {
|
||||
if had_focused_button {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue