listing: fix menu gaining focus if not visible

pull/144/head
Manos Pitsidianakis 4 years ago
parent 23ca41e3e8
commit 74f31875b8
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -633,7 +633,7 @@ impl Component for Listing {
let shortcuts = self.get_shortcuts(context);
if self.focus == ListingFocus::Mailbox {
match *event {
UIEvent::Input(Key::Left) => {
UIEvent::Input(Key::Left) if self.menu_visibility => {
self.focus = ListingFocus::Menu;
self.ratio = 50;
self.set_dirty(true);

Loading…
Cancel
Save