Select location text on ctrl+l; deselect on esc, click, or context menu

This commit is contained in:
Nathan Rowe 2024-10-13 12:01:55 -05:00
parent a9daddb1b0
commit d8668cae79
3 changed files with 26 additions and 8 deletions

View file

@ -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 {