mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 23:44:53 -04:00
refactor(multiverse): Rewrite condition for readability
This commit is contained in:
committed by
Damir Jelić
parent
9f3e7debb1
commit
115c7578d4
@@ -398,7 +398,8 @@ impl App {
|
||||
}
|
||||
GlobalMode::Help => {
|
||||
if let Event::Key(key) = event
|
||||
&& let (KeyModifiers::NONE, Char('q') | Esc) = (key.modifiers, key.code)
|
||||
&& let KeyModifiers::NONE = key.modifiers
|
||||
&& let Char('q') | Esc = key.code
|
||||
{
|
||||
self.set_global_mode(GlobalMode::Default)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user