pub enum TextInputAction {
Done,
Go,
Search,
Send,
Next,
Previous,
Newline,
Unspecified,
}Expand description
What the keyboard’s action key does, and what it says.
Variants§
Done
Done: finish editing and close the keyboard. The default.
Go
Go: follow what was typed, usually an address.
Search
Search.
Send
Send.
Next
Next: move to the following field, keeping the keyboard open.
Previous
Previous: move back to the field before.
Newline
A newline, for a field that takes more than one line. Not an action at all — the key inserts a line break instead of doing anything.
Unspecified
No action key behaviour at all; the platform picks.
Implementations§
Source§impl TextInputAction
impl TextInputAction
Sourcepub const fn android_ime_options(self) -> i32
pub const fn android_ime_options(self) -> i32
The Android imeOptions bit field for this action key.
IME_FLAG_NO_FULLSCREEN is on every one of them: the fullscreen editor Android
offers in landscape replaces the application’s own field with a system one, and
a framework that draws its own text has nothing to gain and a screen to lose.
Trait Implementations§
Source§impl Clone for TextInputAction
impl Clone for TextInputAction
impl Copy for TextInputAction
Source§impl Debug for TextInputAction
impl Debug for TextInputAction
Source§impl Default for TextInputAction
impl Default for TextInputAction
impl Eq for TextInputAction
Source§impl Hash for TextInputAction
impl Hash for TextInputAction
Source§impl PartialEq for TextInputAction
impl PartialEq for TextInputAction
impl StructuralPartialEq for TextInputAction
Auto Trait Implementations§
impl Freeze for TextInputAction
impl RefUnwindSafe for TextInputAction
impl Send for TextInputAction
impl Sync for TextInputAction
impl Unpin for TextInputAction
impl UnsafeUnpin for TextInputAction
impl UnwindSafe for TextInputAction
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