pub fn dynamic_hotkey(
        mut self,
        hotkey: impl FnMut(&T, &Env) -> Option<HotKey> + 'static,
    ) -> Self {
        self.hotkey = Some(Box::new(hotkey));
        self
    }
/// Provide a dynamic hotkey for activating this menu item.
///
/// The hotkey can change depending on the data.
Provide a dynamic hotkey for activating this menu item.
The hotkey can change depending on the data.
Provide a dynamic hotkey for activating this menu item . The hotkey can change depending on the data .
pub fn dynamic_hotkey(
        mut self,
        hotkey: impl FnMut(&T, &Env) -> Option<HotKey> + 'static,
    ) -> Self {
        self.hotkey = Some(Box::new(hotkey));
        self
    }
pub fn dynamic_hotkey ( mut self , hotkey : impl FnMut ( & T , & Env ) -> Option < HotKey > + ' static , ) -> Self { self . hotkey = Some ( Box :: new ( hotkey ) ) ; self }
Provide a dynamic hotkey for activating this menu item.
Provide a dynamic hotkey for activating this menu item .
mut self
hotkey
impl FnMut(&T, &Env) -> Option<HotKey> + 'static
mut self
hotkey
impl FnMut(&T, &Env) -> Option<HotKey> + 'static