Commit graph

142 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
e6571d7b70
Translate non-latin Key using Physical codes
Co-authored-by: Leonid Onokhov <sopvop@gmail.com>
Co-authored-by: edwloef <edwin.frank.loeffler@gmail.com>
2025-12-02 04:01:51 +01:00
Héctor Ramón Jiménez
fae0138e5e
Export Cursor in widget::text_editor 2025-12-01 20:17:08 +01:00
Héctor Ramón Jiménez
4428f31b4f
Add move_to method to Editor 2025-12-01 20:11:42 +01:00
Héctor Ramón Jiménez
63e9eeffb5
Refactor cursor API in Editor
Co-authored-by: Neeraj Jaiswal <neerajj85@gmail.com>
2025-12-01 19:57:27 +01:00
Héctor
68eb57744b
Merge pull request #3117 from mfreeborn/add-text-editor-content-is-empty
add efficient `is_empty` method to `text_editor::Content`
2025-11-30 19:32:19 +01:00
Héctor Ramón Jiménez
d66cf51ad2
Fix macOS shortcut handling in text_input and text_editor 2025-11-29 09:31:35 +01:00
Héctor Ramón Jiménez
4ba180319a
Use modified_key for single key bindings in text_input and text_editor
Co-authored-by: Basti Widua <seppel3210@gmail.com>
2025-11-29 09:15:19 +01:00
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
Michael Freeborn
a11616fdf6 defer to underlying trait method instead 2025-11-21 09:02:26 +00:00
Michael Freeborn
3da40cb05b add efficient is_empty method to text_editor::Content 2025-11-21 08:48:22 +00:00
Héctor Ramón Jiménez
0495f32918
Use new theme::Base::name for theme change detection 2025-11-21 01:09:40 +01:00
Héctor Ramón Jiménez
96be0b5470
Remove trait redundancy in text_editor 2025-11-21 00:59:52 +01:00
pml68
e20fee7956
feat: only rehighlight TextEditor when Theme changes 2025-11-21 00:52:36 +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
5b029ae61c
Improve consistency of Padding API 2025-11-18 21:33:13 +01:00
Sosthène Guédon
0024fc0eb1
Add .id method and text_editor::focus task 2025-11-15 22:45:07 +01:00
iMohmmedSA
63d0ec78a9
Correct padding vector in TextEditor to use (left, top) instead of (top,
left)
2025-11-14 20:17:26 +03: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
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
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
4d4f565da7
Try to make light themes a bit more colorful 2025-08-05 22:04:35 +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
5de7bc83bd
Implement Clone for text_editor::Content 2025-05-16 01:09:53 +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 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
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
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
bab18858cd
Handle pre-edits and commits only if text_editor is focused 2025-02-03 18:38:20 +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
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
6aab76e3a0
Add min_height and max_height to text_editor 2025-01-30 03:45:14 +01:00
Héctor Ramón Jiménez
a7bc1e7da4
Avoid capturing mouse press when text_editor is unfocused 2025-01-30 02:47:59 +01:00
Héctor Ramón Jiménez
87165ccd29
Introduce LineEnding to editor and fix inconsistencies 2025-01-28 06:23:38 +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
fec75221f9
Fix text_editor capturing mouse release events 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
3482ffecdc
Implement reactive-rendering for text_editor 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
f02bfc3f68
Rename Widget::on_event to update 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
dcc184b01b
Replace event::Status in Widget::on_event with Shell::capture_event 2024-11-05 23:52:58 +01:00