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

1030 Commits

Author SHA1 Message Date
dugramen
ad812cf29d Apply transform for LineEdit, RichTextLabel, and TextEdit popup positions 2025-03-08 17:57:44 -05: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
Haoyu Qiu
208797d54e Fix script editor not underlining Unicode identifiers when Ctrl-hovered 2024-09-21 14:10:05 +08:00
Haoyu Qiu
14321b8ed5 Set auto translate mode for drag previews
- Controls
  - `LineEdit`, `TextEdit`: Always disabled since it's dragging user input.
  - `TabBar`: Use the same auto translate mode as the node.
  - `RichTextLabel`: Always disable since auto translation is done
    differently from other controls (selection text you get
    programmatically is always after auto translation).
- Editor
  - Disable drag preview auto translation if the text is user input,
    filename, or class name.
  - Also disabled unexpected auto translation for audio bus effect names.
2024-09-19 19:21:29 +08:00
David Snopek
b1871cdabf Fix project manager stealing focus on i3 2024-09-16 16:55:57 -05:00
Haoyu Qiu
504e0656bb Add TextEdit option to prevent copying without a selection 2024-09-14 09:39:36 +08:00
bruvzg
b776f55bcb Add Control+Shift+U (rebindabe) action for Unicode input, show hex as it is entered. 2024-09-12 11:47:24 +03:00
Rémi Verschelde
c82c441ddd Merge pull request #92865 from rune-scape/rune-optimal-code-edit
CodeEdit: Improve render time by 2x
2024-09-06 10:09:12 +02:00
rune-scape
60fa3ec4d4 CodeEdit: improve render speed 2024-09-04 20:51:09 -07:00
Rémi Verschelde
f69de1c522 Merge pull request #96038 from kitbdev/fix-line-edit-caret-word-mode
Fix LineEdit word mode when there are no more words
2024-09-04 17:12:06 +02:00
rune-scape
154049ce17 StringName Dictionary keys
also added 'is_string()' method to Variant
and refactored many String type comparisons to use it instead
2024-08-29 13:39:27 -07:00
Rémi Verschelde
62e98edf0f Merge pull request #83070 from aaronfranke/textedit-fit-width
Implement fit content width in TextEdit
2024-08-27 22:27:09 +02:00
kit
3da4f457d0 Fix LineEdit word mode when there are no words 2024-08-24 12:28:18 -04:00
kit
93a81dd7aa Fix TextEdit caret movement at start of wrapped lines 2024-08-16 15:52:03 -04:00
Haoyu Qiu
7343dc3a5d Split TranslationServer into its own file 2024-08-15 15:00:47 +08:00
Aaron Franke
3b8afcd10c Implement fit content width in TextEdit
Co-authored-by: Kit Bishop <kitbdev@gmail.com>
2024-08-04 15:14:56 -07:00