pub struct KeyboardActions {
pub on_done: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>,
pub on_go: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>,
pub on_next: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>,
pub on_previous: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>,
pub on_search: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>,
pub on_send: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>,
}Expand description
Callbacks for IME action button presses on the soft keyboard.
Corresponds to Compose’s legacy KeyboardActions.
Fields§
§on_done: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>§on_go: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>§on_next: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>§on_previous: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>§on_search: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>§on_send: Option<Rc<dyn Fn(&dyn KeyboardActionScope)>>Implementations§
Source§impl KeyboardActions
impl KeyboardActions
pub fn on_any(f: impl Fn(ImeAction, &dyn KeyboardActionScope) + 'static) -> Self
Trait Implementations§
Source§impl Clone for KeyboardActions
impl Clone for KeyboardActions
Source§fn clone(&self) -> KeyboardActions
fn clone(&self) -> KeyboardActions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for KeyboardActions
impl !Send for KeyboardActions
impl !Sync for KeyboardActions
impl !UnwindSafe for KeyboardActions
impl Freeze for KeyboardActions
impl Unpin for KeyboardActions
impl UnsafeUnpin for KeyboardActions
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