namespace Terminal.Gui;
///
/// Defines the scope of a that has been bound to a key with
/// .
///
///
/// Key bindings are scoped to the most-focused view () by default.
///
///
///
///
[Flags]
public enum KeyBindingScope
{
/// The key binding is disabled.
Disabled = 0,
///
/// The key binding is scoped to just the view that has focus.
///
///
///
///
Focused = 1,
///
/// The key binding is scoped to the View's Superview hierarchy and the bound s will be invoked
/// even when the View does not have
/// focus, as
/// long as some View up the SuperView hierachy does have focus. This is typically used for s.
///
/// The View must be visible.
///
///
/// HotKey-scoped key bindings are only invoked if the key down event was not handled by the focused view or
/// any of its subviews.
///
///
///
///
HotKey = 2,
///
/// The and the bound s will be invoked regardless of which View has focus. This is typically used
/// for global
/// commands, which are called Shortcuts.
///
/// The View does not need to be visible.
///
///
/// Application-scoped key bindings are only invoked if the key down event was not handled by the focused view or
/// any of its subviews, and if the key was not bound to a .
///
///
///
Application = 4
}