1
0
Fork 0
Commit Graph

1058 Commits

Author SHA1 Message Date
Lukas Tenbrink 581e899785 Refactor `TextEdit::search` to be more robust to failure. 2025-05-14 10:16:42 +02:00
Thaddeus Crews cc5857728d
Merge pull request #106114 from m4gr3d/disable_auto_keyboard_popup
Add property to control showing the virtual keyboard on focus events
2025-05-06 08:37:40 -05:00
Fredia Huya-Kouadio f29feac7a5 Add a `LineEdit` / `TextEdit` property to control whether the virtual keyboard should show on focus 2025-05-05 22:01:34 -04:00
Danil Alexeev 413cb795cd
Move `alt_code_oem437` and `alt_code_cp1252` to separate header file 2025-05-03 11:52:49 +03:00
lawnjelly f8f350a32a Add `GLOBAL_GET` cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
Thaddeus Crews fc1ffeb5e0
Merge pull request #105870 from bruvzg/te_margin_round
[TextEdit] Fix margin rounding at sub 100% scale.
2025-04-28 14:10:52 -05:00
Pāvels Nadtočajevs 1794098b47
[TextEdit] Fix margin rounding at sub 100% scale. 2025-04-28 17:22:58 +03:00
Pāvels Nadtočajevs fb99c01381
[TextEdit] Fix caret cut of in RTL layout, account for wrapped line indents in accessibility updates. 2025-04-28 11:22:33 +03:00
Thaddeus Crews 3947cbe3b2
Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Thaddeus Crews d9122205ec
Merge pull request #105656 from Koyper/fix_line_edit_text_edit_composite_character_backspace_delete
[LineEdit/TextEdit] Add composite character backspace delete and get composite character positions
2025-04-24 09:09:30 -05:00
Koyper b668f45fd0 Fix LineEdit and TextEdit composite character backspace delete. 2025-04-23 15:14:09 -05:00
Pāvels Nadtočajevs 5b49fd4207
Selectively apply `FOCUS_ACCESSIBILITY` to the `Label`s instead of setting it by default. 2025-04-23 12:47:31 +03:00
Thaddeus Crews ad40939b6f
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
Jayden Sipe 292119dd68 Fix smooth scrolling tied to physics process 2025-04-11 17:14:25 -04:00
Thaddeus Crews 717df3ee88
Merge pull request #105249 from Repiteo/core/math-defs-namespace
Core: Use `Math` namespace for constants
2025-04-11 09:51:04 -05:00
Thaddeus Crews 94282d88f9
Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
bruvzg aa0ade5b49
[TextEdit / LineEdit] Add support for OEM Alt codes input. 2025-04-10 08:52:19 +03:00
Pāvels Nadtočajevs b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +03:00
Thaddeus Crews 9bbda47794
Merge pull request #104776 from BrotherShort/TextEdit-VScroll-max-tolerance
Fix TextEdit VScroll max tolerance
2025-04-03 16:50:14 -05:00
BrotherShort 1077fdb15a fix TextEdit VScroll max tolerance
newline

Co-Authored-By: Kit Bishop <kitbdev@gmail.com>
2025-04-03 21:22:57 +08:00
Yufeng Ying 4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
kobewi 10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
Pāvels Nadtočajevs 2fb5059c63
[TextEdit] Use actual indentation offset instead of space width for wrapped lines. 2025-03-19 12:50:43 +02:00
Rémi Verschelde cbb1e0ef7a
Merge pull request #103653 from dugramen/popup_respect_scale
Apply transforms for LineEdit, RichTextLabel, and TextEdit popup positions
2025-03-12 22:56:58 +01:00
A Thousand Ships 331a43a9d8
Add `String::remove_char(s)` methods for performance and convenience 2025-03-10 13:19:28 +01:00
dugramen ad812cf29d Apply transform for LineEdit, RichTextLabel, and TextEdit popup positions 2025-03-08 17:57:44 -05:00
Thaddeus Crews 3c43508ed7
Merge pull request #102427 from AThousandShips/fix_substr
Clean up some uses of `String::substr`
2025-03-07 15:12:33 -06:00
kobewi 92ab92114e Don't duplicate internal nodes 2025-03-07 16:08:53 +01:00
A Thousand Ships 5113022dfe
Clean up some uses of `String::substr`
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Thaddeus Crews 77231d81b4
Merge pull request #102514 from bruvzg/ts_wrp_indent
[TextEdit] Improve wrapped line indent handling.
2025-03-05 12:07:52 -06:00
Rémi Verschelde 4ca2449470
Merge pull request #103410 from kitbdev/fix-te-adjust-viewport-scroll
Fix TextEdit scrolls wrong on text selection
2025-03-04 01:02:19 +01:00
WinnerWind 6cb04c4984 Fix evaluation of line_background_color in minimap
Fixes #102844 by evaluating the line_background_color in a smarter way.

The previous check would cause black bars appearing when a background_color was set in the theme of a TextEdit or CodeEdit. This tackles that issue, by checking if line_background_color is set at all, and does not set alpha if no color is set.
2025-03-02 15:22:48 +05:30
kit b7a8138907 Fix TextEdit scrolls wrong on text selection 2025-02-28 13:19:46 -05:00
Pāvels Nadtočajevs 84a2e3fdb0 [IME] Do not redraw and move caret on IME update w/o text/position changes. 2025-02-20 08:23:50 +02:00
Pāvels Nadtočajevs 9d7a1b5ab0 Fix TextEdit BiDi override. 2025-02-15 18:06:53 +02:00
Thaddeus Crews 5f7ea8328b
Merge pull request #102556 from kitbdev/fix-te-cursor-shape-held
Fix TextEdit cusor shape when mouse is held
2025-02-12 12:56:34 -06:00
A Thousand Ships 5dcab0e606
Prevent some internal nodes being duplicated in Controls 2025-02-10 13:27:08 +01:00
kit 65b7e1c73c Fix TextEdit cusor shape when mouse is held 2025-02-08 15:32:38 -05:00
Pāvels Nadtočajevs 7da0767f35 [TextEdit] Update syntax highlighting when IME composition string is updated. 2025-02-07 11:54:56 +02:00
Pāvels Nadtočajevs 7aeffb8923 [TextEdit] Improve wrapped line indent handling. 2025-02-07 09:52:50 +02:00
Rémi Verschelde e87f4f67b0 Merge pull request #100913 from larspet/tooltip-hover-oob
Prevent tooltip from showing when hovering past the end of script line
2025-02-07 01:39:11 +01:00
Thaddeus Crews 07464479ff
Merge pull request #102296 from kitbdev/fix-te-remove-range-line-count
Fix TextEdit visible line count when setting text
2025-02-04 09:04:10 -06:00
kit 0a19f89ee9 Fix TextEdit visible line count when setting text 2025-02-01 13:04:37 -05:00
kit 73d813aada Fix TextEdit mouse selection and scroll cancel 2025-01-29 13:49:30 -05:00
kit 46fa85891b Fix center viewport not working horizontally 2025-01-25 17:53:53 -05:00
Thaddeus Crews c032ce4050
Merge pull request #101613 from kitbdev/fix-te-hover-mouse-exit
Fix TextEdit breakpoint hover not hiding on mouse exit
2025-01-22 16:32:24 -06:00
Lars Pettersson ff39adddd1
Prevent tooltip from showing when hovering past end of script line 2025-01-18 00:02:06 +01:00
kit 8274e64402 Fix TextEdit breakpoint hover not hiding 2025-01-16 10:42:54 -05:00
Pāvels Nadtočajevs 7c54ad34ba [TextEdit] Fix `viewport_to_caret` using start of IME text instead of IME caret/selection. 2025-01-16 10:26:04 +02:00
Pāvels Nadtočajevs b252867145 [macOS/Windows] Add `Emoji & Symbols` context menu item to LineEdit/TextEdit to show system character picker. 2025-01-10 09:25:34 +02:00