Method DefaultHotKeyHandler
DefaultHotKeyHandler(ICommandContext?)
public bool? DefaultHotKeyHandler(ICommandContext? ctx)
Parameters
ctxICommandContextThe command context.
Returns
Remarks
View-local HotKeys require the View to be visible in the SuperView chain
(CanBeVisible). Application-scoped bindings — those whose
Target is this View (e.g. Key with
BindKeyToApplication) — are honored even when this View is not
visible, so a MenuItem shortcut can fire while its PopoverMenu is closed.
To avoid focusing a hidden View, SetFocus() runs only when the View can be visible.