godot/scene
Rémi Verschelde 32f5bee985
LineEdit: Respect `max_length` by truncating text to append
When appending text (either via `set_text()` or by pasting from clipboard),
if the input would make the `LineEdit` exceed its configured `max_length`,
the input text is truncated to fit. The discard part is passed as a parameter
in the `text_change_rejected` signal.

Fixes #33321.
Fixes #41278.

Also cleaned up unimplemented `max_chars` property in `TextEdit`.

Co-authored-by: Tony-Goat <70238376+Tony-Goat@users.noreply.github.com>
(cherry picked from commit 9a1ce8e6c3)
2021-07-13 10:20:02 +02:00
..
2d Enable Camera2D smoothing on limit change 2021-07-06 11:10:35 +02:00
3d Options to clean/simplify convex hull generated from mesh 2021-07-09 17:45:59 -07:00
animation Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
audio Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
debugger Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
gui LineEdit: Respect `max_length` by truncating text to append 2021-07-13 10:20:02 +02:00
main Remove duplicate WARN_PRINTS macro 2021-06-18 12:57:59 +01:00
resources Merge pull request #50328 from nekomatata/convex-hull-simplification-3.x 2021-07-12 22:34:22 +02:00
SCsub SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
register_scene_types.cpp Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
register_scene_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
scene_string_names.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
scene_string_names.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00