Disable menu item key equivalents while there are pending keystrokes

This commit is contained in:
Max Brunsfeld 2022-05-20 10:04:43 -07:00
parent 21862faa58
commit b72d97ce78
5 changed files with 43 additions and 5 deletions

View file

@ -123,6 +123,10 @@ impl Matcher {
self.pending.clear();
}
pub fn has_pending_keystrokes(&self) -> bool {
!self.pending.is_empty()
}
pub fn push_keystroke(
&mut self,
keystroke: Keystroke,