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

@ -74,6 +74,7 @@ pub(crate) trait ForegroundPlatform {
fn on_menu_command(&self, callback: Box<dyn FnMut(&dyn Action)>);
fn on_validate_menu_command(&self, callback: Box<dyn FnMut(&dyn Action) -> bool>);
fn on_will_open_menu(&self, callback: Box<dyn FnMut()>);
fn set_menus(&self, menus: Vec<Menu>, matcher: &keymap::Matcher);
fn prompt_for_paths(
&self,