Enum youtube_tui::global::structs::KeyAction
source · pub enum KeyAction {
Show 21 variants
MoveLeft,
MoveRight,
MoveUp,
MoveDown,
Select,
Deselect,
Exit,
Back,
ClearHistory,
FirstHistory,
Reload,
StartCommandCapture,
Paste,
RemoveWord,
ClearLine,
PreviousWord,
NextWord,
First,
End,
PreviousEntry,
NextEntry,
}
Expand description
Part of the keybindings config
Variants§
MoveLeft
Moves cursor to the left direction, or to the first item
MoveRight
Moves cursor to the right direction, or to the last item
MoveUp
Moves cursor up
MoveDown
Moves cursor dowm
Select
select the current item
Deselect
deselect the current item, reverts the cursor back to its hover state
Exit
exits/quits the entire app
Back
revert last history
ClearHistory
removes all history
FirstHistory
reverts back to first history (home page if it is not cleared)
Reload
reload the current page
StartCommandCapture
start command capture
Paste
paste text
RemoveWord
remove a word
ClearLine
removes all content in textfield
PreviousWord
move cursor to previous word in textfield
NextWord
move cursor to next word in textfield
First
move cursor to the first position
End
move cursor to the last position
PreviousEntry
Previous entry
NextEntry
Next entry
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyAction
impl<'de> Deserialize<'de> for KeyAction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<KeyAction> for KeyAction
impl PartialEq<KeyAction> for KeyAction
impl Copy for KeyAction
impl Eq for KeyAction
impl StructuralEq for KeyAction
impl StructuralPartialEq for KeyAction
Auto Trait Implementations§
impl RefUnwindSafe for KeyAction
impl Send for KeyAction
impl Sync for KeyAction
impl Unpin for KeyAction
impl UnwindSafe for KeyAction
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
source§impl<T> CloneAny for Twhere
T: Any + Clone,
impl<T> CloneAny for Twhere T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send, Global>where T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync, Global>where T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Sync + Send, Global>where T: Send + Sync,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.