1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00
Commit Graph

1044 Commits

Author SHA1 Message Date
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
Rémi Verschelde
ef9f0aefd0 Merge pull request #101175 from wareya/wrap_perf_fix
Fix large `TextEdit` width resize performance when wrapping disabled
2025-01-09 13:50:46 +01:00
wareya
b8c52f16e2 Fix large LineEdit x resize perf when wrapping disabled 2025-01-08 21:24:49 -05:00
Aarni Koskela
f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
Lars Pettersson
2c16cfb52a Clear cache on syntax highlighter or theme change 2024-12-15 22:41:30 +01:00
Thaddeus Crews
70ea5713cf Merge pull request #98012 from syntaxerror247/lineEdit-bug-fix
Fix uneditable `LineEdit`, `TextEdit` and `CodeEdit` virtual keyboard popup on mobile
2024-11-27 10:47:15 -06:00
Thaddeus Crews
af3fb0a2b8 Merge pull request #86085 from TheSofox/text-undo-cleanup
Cleanup in undo in `TextEdit` and `LineEdit`
2024-11-15 10:42:33 -06:00
kobewi
8437a05cc9 Ignore paste action if clipboard is empty 2024-11-12 20:40:47 +01:00
Thaddeus Crews
51d7d6b5b7 Merge pull request #98678 from Daylily-Zeleen/daylily-zeleen/fix_text_edit
Fix `total_visible_line_count` calculation when removing and clearing `TextEdit`'s text.
2024-11-12 12:13:20 -06:00
Daylily-Zeleen
d22419b453 Fix total_visible_line_count calculation when removing and clearing text of TextEdit. 2024-11-06 18:44:13 +08:00
bruvzg
fdde7713a8 Fix IME deactivation events not send on focus loss. Do not unset AltGr modifiers in non-IME input. 2024-11-06 09:47:26 +02:00
Thaddeus Crews
bb5f390fb9 Style: Apply clang-tidy fixes (superficial)
• `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
2024-11-04 12:11:14 -06:00
Anish Mishra
14dd595447 Fix uneditable LineEdit, TexEdit and CodeEdit Virtual Keyboard popup 2024-10-17 23:50:28 +05:30
David Snopek
36293a2dbf Fix renaming nodes on X11 2024-09-25 09:05:51 -05:00
Rémi Verschelde
720c236fc0 Merge pull request #90743 from timothyqiu/empty-selection-clipboard
Add TextEdit option to prevent copying without a selection
2024-09-23 12:27:35 +02:00