Commit graph

133 commits

Author SHA1 Message Date
edwloef
6bbe189809
Fix inconsistent naming of tree parameter in Widget trait (#2950)
* fix inconsistent naming of tree parameter in widget trait

* rename `Tree` parameter in various usages across iced
2025-11-25 23:58:07 +01:00
Héctor Ramón Jiménez
2804aff5b2
Set cursor width to 1.0 in IME requests 2025-11-25 22:27:01 +01:00
dcz
d22da7d261
Report cursor size to InputMethod
Co-authored-by: dcz-self <dcz-self@users.noreply.github.com>
2025-11-25 22:25:40 +01:00
Remmirad
7c661c94be
Introduce select_range to operation::text_input 2025-11-25 10:38:45 +01:00
Héctor Ramón Jiménez
5b7bcc7a9c
Improve naming of Drag interactions in text_input 2025-11-24 11:46:34 +01:00
Andrew Baldwin
1aa8aaf818
Add the ability to expand selection-by-word initiated by double-click in text_input. 2025-11-24 11:45:18 +01:00
Héctor
190b9f60b4
Merge pull request #2862 from andymandias/text_input-command_shortcuts
⌘ + Backspace and ⌘ + Delete macOS Shortcuts in `text_input`
2025-11-24 11:37:33 +01:00
Héctor Ramón Jiménez
416ec838f2
Implement macOS-specific key shortcuts for text_editor 2025-11-21 00:15:36 +01:00
Héctor Ramón Jiménez
524b4acc6d
Simplify convert_macos_shortcut a bit in text_input 2025-11-21 00:10:14 +01:00
rhysd
587cd7c94f
Implement macOS-specific key shortcuts for text input
This commit implements some key shortcuts listed in the following list:

https://support.apple.com/en-us/102650#:~:text=and%20iCloud%20Drive.-,Text%2Dediting%20shortcuts,-The%20behavior%20of
2025-11-21 00:08:28 +01:00
Héctor Ramón Jiménez
e2df674aa5
Merge branch 'master' into feature/test-recorder 2025-09-19 18:23:28 +02:00
Héctor Ramón Jiménez
db5a1f6353
Fix clippy lints for Rust 1.90 2025-09-19 18:22:45 +02:00
Héctor Ramón Jiménez
5796ba272e
Remove missing_debug_implementations lint 2025-09-12 05:25:09 +02:00
Andrew Baldwin
e709fdc117 Add support for ⌘ + Backspace and ⌘ + Delete macOS shortcuts to text_input.
Additionally, prevent move-by-word when `text_input` is secure.
2025-09-09 12:27:45 -07:00
Héctor Ramón Jiménez
9e81c2b9e8
Merge branch 'master' into feature/test-recorder 2025-08-29 04:25:52 +02:00
Héctor Ramón Jiménez
6be707267e
Revert "Make Widget::diff mutable"
This reverts commit 497ebcd0c3.
2025-08-29 04:21:43 +02:00
Héctor Ramón Jiménez
34a42b5ad4
Move all operations to widget::operation module 2025-08-23 03:54:54 +02:00
Héctor Ramón Jiménez
885d45f435
Fix broken intra-doc links 2025-08-23 02:41:52 +02:00
Héctor Ramón Jiménez
fbe60feb7e
Remove Id for container, scrollable, and text_input 2025-08-23 02:04:30 +02:00
Héctor Ramón Jiménez
497ebcd0c3
Make Widget::diff mutable 2025-08-20 23:14:23 +02:00
Héctor Ramón Jiménez
31bc6d48cd
Make Widget::layout and operate mutable
... and bless `responsive`!
2025-08-20 22:42:15 +02:00
Héctor Ramón Jiménez
bdcaadbe00
Introduce instruction::Target in test crate 2025-08-20 13:47:34 +02:00
Héctor Ramón Jiménez
d5cd0a6de9
Fix lints for Rust 1.89 and bump MSRV to 1.88 2025-08-07 22:38:22 +02:00
Héctor Ramón Jiménez
0857eb3bde
Improve contrast of built-in themes by leveraging Oklch 2025-08-05 10:01:01 +02:00
Héctor Ramón Jiménez
6bf709e03e
Make anchoring explicit and improve reusability of text pipelines 2025-05-04 03:54:42 +02:00
Héctor Ramón Jiménez
f031b99196
Return change flag in paragraph::Plain::update 2025-05-03 05:53:19 +02:00
Héctor Ramón Jiménez
0e4a392731
Introduce text::Alignment with Justified support 2025-03-11 02:30:50 +01:00
Héctor Ramón Jiménez
179a34d37b
Fix horizontal text alignment 2025-03-11 00:43:51 +01:00
Héctor
34314b3f57
Merge pull request #2812 from andymandias/text_input-is_focused
`operation::focusable::is_focused` & `text_input::is_focused`
2025-02-23 07:34:30 +01:00
Andrew Baldwin
9cba92f57f Add is_focused function that produces an Operation to get the focused state of a focusable by ID.
Add `is_focused` function that produces a `Task` to get the focused state of a `text_input` by ID.
2025-02-21 18:56:41 -08:00
Héctor Ramón Jiménez
954f49d4d7
Add weakest and strongest to Background palette
... and tweak background shade generation logic.
2025-02-22 00:34:55 +01:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt 2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
f625297475
Fix request_input_method call in text_input 2025-02-12 23:17:48 +01:00
Héctor Ramón Jiménez
7979125ed7
Simplify InputMethod API with only two states
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
Co-authored-by: KENZ <KENZ.gelsoft@gmail.com>
2025-02-12 08:46:35 +01:00
Héctor Ramón Jiménez
97f1db3783
Fix unneeded re-shaping during layout on text_input edit 2025-02-12 08:43:14 +01:00
Héctor Ramón Jiménez
7199ed0d07
Use default size for empty pre-edits 2025-02-12 07:26:26 +01:00
rhysd
cf851e133a Do not pass text size to Preedit::new 2025-02-06 09:57:01 +09:00
rhysd
fcdf53afde Set correct text size for text in preedit window 2025-02-06 02:01:52 +09:00
rhysd
eedaa376b9 Remove the placeholder text when IME is activated in text input 2025-02-05 00:53:16 +09:00
Héctor Ramón Jiménez
afef368d8a
Take Event by reference in Widget::update 2025-02-04 01:26:59 +01:00
Héctor Ramón Jiménez
e8c680ce66
Request redraws on InputMethod events 2025-02-03 16:55:10 +01:00
Héctor Ramón Jiménez
c83809adb9
Implement basic IME selection in Preedit overlay 2025-02-03 02:33:40 +01:00
Héctor Ramón Jiménez
3a35fd6249
Clamp pre-edit inside viewport bounds 2025-02-03 01:30:41 +01:00
Héctor Ramón Jiménez
d28af5739b
Track pre-edits separately from focus in text inputs 2025-02-03 00:51:57 +01:00
Héctor Ramón Jiménez
ae10adda74
Refactor and simplify input_method API 2025-02-02 20:45:29 +01:00
Héctor Ramón Jiménez
0c6d4eb23f
Run cargo fmt and fix lints 2025-02-02 17:50:12 +01:00
KENZ
7db5256b72
Draft input_method support 2025-02-02 17:44:13 +01:00
Héctor Ramón Jiménez
d09d5d45ae
Draft iced_test crate and test todos example 2024-12-10 04:51:08 +01:00
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +01:00
Héctor Ramón Jiménez
f02bfc3f68
Rename Widget::on_event to update 2024-11-05 23:52:58 +01:00