pub struct KeyboardActionScope { /* private fields */ }Expand description
What a keyboard action handler gets: the action the person ran, and a
way to run that action’s default behavior too, as Compose’s
performDefaultAction does.
Implementations§
Source§impl KeyboardActionScope
impl KeyboardActionScope
Sourcepub fn action(&self) -> ImeAction
pub fn action(&self) -> ImeAction
The resolved action: never ImeAction::Default.
Sourcepub fn perform_default_action(&self)
pub fn perform_default_action(&self)
Runs the action’s default after the handler returns: Next and Previous move focus, Done hides the software keyboard, and the other actions do nothing.
Auto Trait Implementations§
impl !Freeze for KeyboardActionScope
impl !RefUnwindSafe for KeyboardActionScope
impl !Sync for KeyboardActionScope
impl Send for KeyboardActionScope
impl Unpin for KeyboardActionScope
impl UnsafeUnpin for KeyboardActionScope
impl UnwindSafe for KeyboardActionScope
Blanket Implementations§
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more