ui: change menu toggle shortcut

embed
Manos Pitsidianakis 2019-03-31 18:12:47 +03:00
parent e4aec7c17e
commit 9356d43787
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ impl Component for AccountMenu {
UIEventType::Resize => {
self.dirty = true;
}
UIEventType::Input(Key::Char('\t')) => {
UIEventType::Input(Key::Char('`')) => {
self.visible = !self.visible;
self.dirty = true;
}
@ -290,7 +290,7 @@ impl Component for AccountMenu {
self.dirty = true;
}
fn get_shortcuts(&self, _context: &Context) -> ShortcutMap {
[("Toggle account menu visibility", Key::Char('\t'))]
[("Toggle account menu visibility", Key::Char('`'))]
.iter()
.cloned()
.collect()