[][src]Enum window::input::TextInput

#[non_exhaustive]pub enum TextInput {
    Back,
    Text(char),
    Backspace,
    Delete,
    Compose(bool),
    Enter,
    Retract,
    Tab,
    UnTab,
    Up,
    Down,
    Left,
    Right,
    SelectUp,
    SelectDown,
    SelectLeft,
    SelectRight,
    Copy,
    ClipboardView,
    Paste,
    PasteUnformat,
    Cut,
    Swap,
    SelectAll,
    DeleteLine,
    Find,
    FindReplace,
    GotoLine,
    Undo,
    Redo,
    Sync,
    Share,
    Home,
    End,
    PageUp,
    PageDown,
    Underline,
    Italic,
    Bold,
    SwapLeft,
    SwapRight,
    SwapUp,
    SwapDown,
    DeleteWord,
    BackspaceWord,
    WordLeft,
    WordRight,
    UpHome,
    DownEnd,
    New,
    Open,
    Template,
}

Typing input. Ctrl refers to Cmd on MacOS.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Back

Escape key or back button

Text(char)

User has entered some character via keyboard or paste

Backspace

Backspace / Shift-Delete (Delete previous character)

Delete

Delete / Shift-Backspace (Delete next character)

Compose(bool)

User has entered compose key (show visually somehow, no other action necessary)

Enter

Enter (Newline, nextline or submit)

Retract

Shift-Enter (Previous line - Useful for spreadsheet and music software)

Tab

Tab (Indent or next)

UnTab

Shift-Tab (UnIndent or previous)

Up

ArrowUp (Move cursor up)

Down

ArrowDown (Move cursor down)

Left

ArrowLeft (Move cursor left)

Right

ArrowRight (Move cursor right)

SelectUp

Shift-ArrowUp (Cursor select up)

SelectDown

Shift-ArrowDown (Cursor select down)

SelectLeft

Shift-ArrowLeft (Cursor select left)

SelectRight

Shift-ArrowRight (Cursor select right)

Copy

Ctrl-C

ClipboardView

Alt-C (Ctrl-Shift-C)

Paste

Ctrl-V

PasteUnformat

Alt-V (Ctrl-Shift-V)

Cut

Ctrl-X

Swap

Alt-X (Ctrl-Shift-X)

SelectAll

Ctrl-A

DeleteLine

Ctrl-D

Find

Ctrl-F

FindReplace

Alt-F

GotoLine

Ctrl-G

Undo

Ctrl-Z

Redo

Alt-Z (Ctrl-Y, Ctrl-Shift-Z)

Sync

Ctrl-S

Share

Alt-S (Ctrl-Shift-S)

Home

Home (Beginning of line)

End

End (End of Line)

PageUp

PageUp (Up one page)

PageDown

PageDown (Down one page)

Underline

Ctrl-U (Make selection underlined)

Italic

Ctrl-I (Make selection italic)

Bold

Ctrl-B (Make selection bold)

SwapLeft

Alt-ArrowLeft (Swap word left)

SwapRight

Alt-ArrowRight (Swap word right)

SwapUp

Alt-ArrowUp (swap line up)

SwapDown

Alt-ArrowDown (swap line down)

DeleteWord

Ctrl-Delete / Alt-Backspace (Delete until space)

BackspaceWord

Ctrl-Backspace / Alt-Delete (Backspace until space)

WordLeft

Ctrl-ArrowLeft

WordRight

Ctrl-ArrowRight

UpHome

Ctrl-ArrowUp (Up and Home at once)

DownEnd

Ctrl-ArrowDown (Down and End at once)

New

Ctrl-N (New)

Open

Ctrl-O (Open)

Template

Alt-N / Ctrl-Shift-N (New With Template)

Trait Implementations

impl Clone for TextInput[src]

impl Copy for TextInput[src]

impl Debug for TextInput[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DynBoxFut<'a> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.