Egui::HotkeyMap
Inherits Reference < Object
The app-global hotkey → action bindings, owned by the Context
(ctx.hotkeys). One hotkey per action and one action per hotkey:
rebinding an action moves it (the old hotkey is freed); binding a
hotkey that is taken replaces the previous binding.
Instance methods
action_for(hotkey : Hotkey) : HotkeyAction | Nil
Sourcebind(hotkey : Hotkey, action : HotkeyAction) : Nil
Sourcebind(hotkey : String, action : HotkeyAction) : Nil
Sourcebind(hotkey : String, action : String) : Nil
Sourcedispatch(input : InputState) : Array(HotkeyAction)
Global dispatch (Context#begin_frame): fire every action whose hotkey was pressed this frame and claim the key so widgets don't also react to it. Modifier-press-only frames never match (the backend emits no key events for bare modifiers).
each
Sourcehotkey_for(action : HotkeyAction) : Hotkey | Nil
Sourcesize
Sourceunbind(hotkey : Hotkey) : Nil
Sourceunbind_action(action : HotkeyAction) : Nil
Remove whatever hotkey action is bound to (HotkeyEdit's
Backspace/Delete "clear" gesture).