From e49a19b923ef954ea1130ab6455c5e2c3f8ef426 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Tue, 21 Oct 2025 17:34:52 +0200 Subject: docs: list keyboard shortcuts under `text` module --- src/text.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/text.rs') diff --git a/src/text.rs b/src/text.rs index 9957b5f..f911a39 100644 --- a/src/text.rs +++ b/src/text.rs @@ -1,4 +1,21 @@ //! Text widgets display information through writing. +//! +//! Keyboard shortcuts (applies to both [`Text`] and [`Rich`]): +//! +//! |MacOS|Linux/Windows|Effect| +//! |-|-|-| +//! |`Cmd + A`|`Ctrl + A`|Selects all text in the currently focused paragraph| +//! |`Cmd + C`|`Ctrl + C`|Copies the selected text to clipboard| +//! |`Shift + Left Arrow`|`Shift + Left Arrow`|Moves the selection to the left by one character| +//! |`Shift + Right Arrow`|`Shift + Right Arrow`|Moves the selection to the right by one character| +//! |`Shift + Opt + Left Arrow`|`Shift + Ctrl + Left Arrow`|Extends the selection to the previous start of a word| +//! |`Shift + Opt + Right Arrow`|`Shift + Ctrl + Right Arrow`|Extends the selection to the next end of a word| +//! |`Shift + Home`
`Shift + Cmd + Left Arrow`
`Shift + Opt + Up Arrow`|`Shift + Home`
`Shift + Ctrl + Up Arrow`|Selects to the beginning of the line| +//! |`Shift + End`
`Shift + Cmd + Right Arrow`
`Shift + Opt + Down Arrow`|`Shift + End`
`Shift + Ctrl + Down Arrow`|Selects to the end of the line| +//! |`Shift + Up Arrow`|`Shift + Up Arrow`|Moves the selection up by one line if possible, or to the start of the current line otherwise| +//! |`Shift + Down Arrow`|`Shift + Down Arrow`|Moves the selection down by one line if possible, or to the end of the current line otherwise| +//! |`Shift + Opt + Home`
`Shift + Cmd + Up Arrow`|`Shift + Ctrl + Home`|Selects to the beginning of the paragraph| +//! |`Shift + Opt + End`
`Shift + Cmd + Down Arrow`|`Shift + Ctrl + End`|Selects to the end of the paragraph| mod rich; use iced_widget::{ -- cgit v1.2.3