GlobalEscapeDirective class
Directive to listen to the escape key globally.
Useful for things like having a dialog close when the escape key is pressed even when the dialog is not focused.
WARNING: If listeners to the onEscape stream are on the page but hidden, they will still be registered to the stream. To avoid that situation, use this directive only within a deferredContent directive.
- Annotations
-
- @Directive.new(selector: '[globalEscape]')
Constructors
- GlobalEscapeDirective(Window _window)
Properties
-
globalEscape
→ Stream<
KeyboardEvent> -
Event triggered when the escape key is pressed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited