pub struct DoNothingAndStopPropagationIntent;Expand description
An Intent that is bound to a DoNothingAction, but, in addition to not performing an
action, also stops the propagation of the key event bound to this intent to other key event
handlers in the focus chain.
Attaching a DoNothingAndStopPropagationIntent to a Shortcuts::shortcuts mapping is one
way to disable a keyboard shortcut defined by a widget higher in the widget hierarchy. In
addition, the bound DoNothingAction will return false from
Action::consumes_key, causing the key bound to this intent to be passed on to the
platform embedding as “not handled” without passing it to other key handlers in the focus
chain (e.g. parent Shortcuts widgets higher up in the chain).
See also:
DoNothingIntent, a similar intent that will handle the key event.
Implementations§
Source§impl DoNothingAndStopPropagationIntent
impl DoNothingAndStopPropagationIntent
Sourcepub const fn new() -> DoNothingAndStopPropagationIntent
pub const fn new() -> DoNothingAndStopPropagationIntent
Creates a DoNothingAndStopPropagationIntent.
Trait Implementations§
impl Copy for DoNothingAndStopPropagationIntent
impl Eq for DoNothingAndStopPropagationIntent
Source§impl Intent for DoNothingAndStopPropagationIntent
impl Intent for DoNothingAndStopPropagationIntent
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased intent, for the downcast an
Action does to recover its
own intent type.Source§fn intent_type(&self) -> TypeId
fn intent_type(&self) -> TypeId
Dart’s
intent.runtimeType: the key an Actions map is looked up with.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
Intent.debugFillProperties, from Diagnosticable: an intent adds its own
fields.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
Intent.toStringShort: the type and the identity.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Dart’s
Intent.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an intent prints.impl StructuralPartialEq for DoNothingAndStopPropagationIntent
Auto Trait Implementations§
impl Forget for DoNothingAndStopPropagationIntent
impl Freeze for DoNothingAndStopPropagationIntent
impl Move for DoNothingAndStopPropagationIntent
impl RefUnwindSafe for DoNothingAndStopPropagationIntent
impl Send for DoNothingAndStopPropagationIntent
impl Sync for DoNothingAndStopPropagationIntent
impl Unpin for DoNothingAndStopPropagationIntent
impl UnsafeUnpin for DoNothingAndStopPropagationIntent
impl UnwindSafe for DoNothingAndStopPropagationIntent
Blanket Implementations§
Source§impl<T> ActionIntent for Twhere
T: Intent,
impl<T> ActionIntent for Twhere
T: Intent,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.