Commit Graph

1114 Commits

Author SHA1 Message Date
Thaddeus Crews 79eb6694a1 Merge pull request #112381 from Ivorforce/no-right-align
Don't right-align escaped newlines (e.g. for `#define`)
2026-02-05 09:18:36 -06:00
Lukas Tenbrink c5df0cb82b Don't right-align escaped newlines, e.g. for #define. This has previously led to long diffs in the commit history. 2026-02-04 19:31:28 +01:00
Thaddeus Crews 77f596abc5 Merge pull request #115729 from Manik2607/fix-current-line-highlight-gutter
Fix current line highlight not extending into gutter
2026-02-02 12:57:29 -06:00
Manik Sharma 4dfbd909ac Fix current line highlight not extending into gutter
Fixes regression where current line highlight no longer extends
into the gutter area. The highlight now starts from 0 instead of
xmargin_beg, making it extend all the way to the left edge.

This restores the 4.5.1 behavior where the current line highlight
spans the entire line including the gutter area and left margin.
2026-02-02 16:33:56 +05:30
kobewi f7b9703cbd Use actual class names in resource type hints 2026-01-29 21:07:56 +01:00
Thaddeus Crews ae7d2defe2 Merge pull request #115006 from kitbdev/fix-te-editable-draw-caret
Fix TextEdit not drawing caret on setting editable
2026-01-27 09:04:04 -06:00
Thaddeus Crews 86b40d4439 Merge pull request #111859 from kitbdev/fix_te_ime_wrap_index_error
Fix TextEdit IME error on mouse over
2026-01-26 13:14:35 -06:00
kit f2e370cfd3 Fix TextEdit not drawing caret on setting editable 2026-01-15 14:04:02 -05:00
kit 9813c834fa Fix TextEdit Shift+Click selection start position 2026-01-09 10:46:45 -05:00
Rémi Verschelde 3349d14f84 Merge pull request #114404 from kitbdev/fix-te-move-caret-word-hidden
Fix TextEdit moving caret word left/right can hide the caret
2026-01-01 16:47:30 +01:00
Adam Scott 263589497b Add non-public {Line,Text}Edit::_set_text()
- [Web] Fix "Enter" not triggering LineEdit submits.

Co-authored-by: Marwen Azouzi <marwen.azouzi@datadoghq.com>
2026-01-01 12:00:52 +01:00
kit cbc3a989fb Fix TextEdit moving caret word left/right can hide 2025-12-28 16:42:29 -05:00
Rémi Verschelde e7d8609c73 Merge pull request #113390 from X1Vi/text-edit-does-not-auto-scroll-113290
Fix `TextEdit` does not auto scroll properly on certain vertical sizes
2025-12-12 17:13:00 +01:00
X1Vi 442c117fb7 fix: scrollbar range fix and new tests for the same
fix: now the scrollbar also should work within the range it is provided

adjusted the tests according to the new scrollbar functinality

attempted to fix testcases for scrollbar
2025-12-12 18:31:19 +05:30
Nolan Darilek 6304e9f876 Accessibility: Fix text field character count and line navigation
Two fixes for text field accessibility:

1. Fix character count being off by one due to trailing newline always
   being appended to the last line. Add `is_last_line` parameter to
   `accessibility_create_sub_text_edit_elements()` to control this.

2. Link adjacent TextRuns via `previous_on_line`/`next_on_line` so
   screen readers can properly navigate lines. Without these links,
   AccessKit treats each TextRun as a separate line, causing incorrect
   announcements when arrowing through multi-line text.
2025-12-03 07:19:05 -05:00
kobewi e14263f917 Remove empty constructors and destructors from core/ 2025-11-17 20:09:05 +01:00
kit e2cbfb53f1 Deprecate TextEdit background_color 2025-11-13 22:48:04 -05:00
Thaddeus Crews 82e6303634 Merge pull request #111535 from kitbdev/fix-textedit-dont-select
Fix TextEdit selecting when closing popup
2025-11-10 08:20:08 -06:00
Thaddeus Crews 6d32d3df75 Merge pull request #111766 from kitbdev/speed_up_spinbox_creation
Improve performance of SpinBox creation
2025-10-27 10:01:35 -05:00
Thaddeus Crews e870cd911b Merge pull request #110895 from Giganzo/input-focus
Add setting for when to show the focus state for mouse input
2025-10-21 19:09:25 -05:00
kit 290180c899 Fix TextEdit IME error on mouse over 2025-10-21 16:44:34 -04:00
Thaddeus Crews ee6fb9e5e1 Merge pull request #111865 from kitbdev/fix-multiple-ime
Fix IME input in multiple Windows at once
2025-10-21 10:27:13 -05:00
Thaddeus Crews 16503a10d4 Merge pull request #111744 from bruvzg/te_roff
[TextEdit] Make `wrap_right_offset` adjustable theme constant.
2025-10-21 10:26:53 -05:00
kit 8abdedd477 Fix IME input in multiple Windows at once 2025-10-20 20:25:59 -04:00
Thaddeus Crews 4e03f41779 Merge pull request #111156 from WhalesState/insp-groups
Group `virtual keyboard` and `word separators` properties in the inspector.
2025-10-20 18:09:39 -05:00
Pāvels Nadtočajevs e31830db52 [TextEdit] Make wrap_right_offset adjustable theme constant. 2025-10-18 21:35:02 +03:00
kit e232484a37 Improve performance of SpinBox creation 2025-10-17 13:11:21 -04:00
Thaddeus Crews 9e96c7d9b8 Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 -05:00
kit 49cf8654fa Fix TextEdit selecting when closing popup 2025-10-11 19:20:02 -04:00
Giganzo e384085ca1 Add setting for when to show the focus state for mouse input 2025-10-07 14:26:14 +02:00
Mounir Tohami 2421dfaab3 Group virtual keyboard properties in the inspector 2025-10-02 14:15:10 +03:00
Thaddeus Crews caefb0f1c1 Merge pull request #110527 from WhalesState/text-edit-styles
Fix TextEdit `read_only` drawing.
2025-10-01 13:12:47 -05:00
Aaron Franke 9fbf5808a0 Rename server "free" functions to "free_rid" to match exposed API 2025-09-30 16:52:25 -07:00
Aaron Franke 1a7be001d2 Use const Array ref in set_structured_text_bidi_override_options 2025-09-26 14:31:38 -07:00
Mounir Tohami c07966583f Fix editor theme margins and TextEdit normal/read_only styles draw. 2025-09-24 20:42:22 +03:00
Thaddeus Crews 5db618a2db Merge pull request #109078 from WhalesState/text-edit-clipping
Fix TextEdit clips children and focus style.
2025-09-24 09:59:12 -05:00
Haoyu Qiu 172c80df67 Make text-related nodes translation domain aware
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +08:00
Mounir Tohami b25e35cf58 Fix TextEdit styles and disable clipping.
Co-Authored-By: kit <kitbdev@gmail.com>
2025-09-21 07:32:30 +03:00
Michael Alexsander aeb3a45c97 Hide Control focus when given via mouse input 2025-09-19 13:43:29 -03:00
Thaddeus Crews 2c1ad5b07a Merge pull request #109031 from bruvzg/tab_spacing
Include `SPACING_SPACE` in tab stops calculation.
2025-09-19 09:17:00 -05:00
Pāvels Nadtočajevs 7368d148c1 [TextEdit] Fix text edit font update order. 2025-09-02 08:51:18 +03:00
aaronp64 019f4ab403 Update TextEdit to use center alignment for inline objects
Updated to use center alignment instead of top to avoid shifting the line of text up when adding an object.
2025-08-20 17:19:58 -04:00
Pāvels Nadtočajevs d13b5361b4 [TextServer] Fix caret hit test rounding. 2025-08-08 11:06:07 +03:00
Pāvels Nadtočajevs 3f757c41fc Update access-kit to 0.17.0 2025-07-29 08:37:01 +03:00
Pāvels Nadtočajevs 2409956297 Include SPACING_SPACE into tab stops calculation. 2025-07-27 21:26:36 +03:00
kit addae393a4 Fix TextEdit line wrap indent when disabled 2025-07-22 22:29:05 -04:00
Pāvels Nadtočajevs 8624134c89 [TextEdit] Draw guidelines under the text and caret. 2025-07-14 16:31:35 +03:00
kit 927208a92e Fix ScriptEditor line number in color objects 2025-07-09 16:18:57 -04:00
Thaddeus Crews d4fa7e15ed Merge pull request #106919 from kitbdev/fix-codeedit-hover-word-lookup
Fix CodeEdit hover word lookup
2025-06-18 18:13:43 -05:00
Marwen Azouzi 76d782d291 Fix IME window position not taking into account window transform 2025-06-11 17:43:21 +02:00