godot/scene/gui
Rémi Verschelde 9a1ce8e6c3
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>
2021-07-06 18:03:03 +02:00
..
aspect_ratio_container.cpp Tweak dozens of editor property hints for consistency 2021-05-25 02:50:35 +02:00
aspect_ratio_container.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
base_button.cpp Rename is_a_parent_of() to is_ancestor_of() 2021-06-21 08:39:28 -06:00
base_button.h Rename ButtonList enum and members to MouseButton 2021-03-23 07:13:23 -04:00
box_container.cpp Improved 3D Scene Importer 2021-03-22 12:16:40 -03:00
box_container.h Improved 3D Scene Importer 2021-03-22 12:16:40 -03:00
button.cpp Add alignment options to icons on buttons. 2021-06-29 12:31:40 +02:00
button.h Add alignment options to icons on buttons. 2021-06-29 12:31:40 +02:00
center_container.cpp Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
center_container.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
check_box.cpp Merge pull request #37755 from KoBeWi/check_down 2021-03-23 13:06:02 +01:00
check_box.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
check_button.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
check_button.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
code_edit.cpp Move indent management to CodeEdit 2021-06-20 20:00:54 +01:00
code_edit.h Move indent management to CodeEdit 2021-06-20 20:00:54 +01:00
color_picker.cpp Rename instance()->instantiate() when it's a verb 2021-06-19 20:49:18 -06:00
color_picker.h Documentation search fixes 2021-06-16 09:43:34 -07:00
color_rect.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
color_rect.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
container.cpp Use Array for node configuration warnings 2021-04-11 23:25:38 -05:00
container.h Use Array for node configuration warnings 2021-04-11 23:25:38 -05:00
control.cpp Merge pull request #49468 from menip/FixGetScreenPosition 2021-07-03 14:29:20 +02:00
control.h Fix editor suffixes and degrees conversion 2021-06-30 12:38:25 -03:00
dialogs.cpp Documentation search fixes 2021-06-16 09:43:34 -07:00
dialogs.h Documentation search fixes 2021-06-16 09:43:34 -07:00
file_dialog.cpp Documentation search fixes 2021-06-16 09:43:34 -07:00
file_dialog.h Documentation search fixes 2021-06-16 09:43:34 -07:00
gradient_edit.cpp Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods 2021-05-07 14:00:50 -06:00
gradient_edit.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
graph_edit.cpp Remove clips_input() method and use clip_content 2021-06-25 15:46:37 +02:00
graph_edit.h Remove clips_input() method and use clip_content 2021-06-25 15:46:37 +02:00
graph_node.cpp Fix GraphNode port position when the control has the Expand flag 2021-06-28 18:52:13 +02:00
graph_node.h -Added missing setters to GraphNode. 2021-05-13 17:45:07 +05:45
grid_container.cpp Style: Cleanup uses of double spaces between words 2021-06-07 11:03:08 +02:00
grid_container.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
item_list.cpp Rename instance()->instantiate() when it's a verb 2021-06-19 20:49:18 -06:00
item_list.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
label.cpp Update min size on Label::set_text 2021-06-21 19:54:40 +08:00
label.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
line_edit.cpp LineEdit: Respect max_length by truncating text to append 2021-07-06 18:03:03 +02:00
line_edit.h Rename doubleclick to double_click 2021-05-04 04:38:08 -04:00
link_button.cpp Rename instance()->instantiate() when it's a verb 2021-06-19 20:49:18 -06:00
link_button.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
margin_container.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
margin_container.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
menu_button.cpp Fix crashes in *_input functions 2021-04-05 08:52:21 +02:00
menu_button.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
nine_patch_rect.cpp Fixed a bunch of connection errors in TextureEditorPlugin 2021-06-12 08:01:02 +03:00
nine_patch_rect.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
option_button.cpp Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
option_button.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
panel_container.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
panel_container.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
panel.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
panel.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
popup_menu.cpp Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods 2021-05-07 14:00:50 -06:00
popup_menu.h Rename instance()->instantiate() when it's a verb 2021-06-19 20:49:18 -06:00
popup.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
popup.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
progress_bar.cpp [CTL] Add missing font outline drawing routines and theme constants. 2021-02-14 14:11:44 +02:00
progress_bar.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
range.cpp Add PROPERTY_USAGE_NONE and use it 2021-06-17 19:10:26 -04:00
range.h Use Array for node configuration warnings 2021-04-11 23:25:38 -05:00
reference_rect.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
reference_rect.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
rich_text_effect.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
rich_text_effect.h Rename Reference to RefCounted 2021-06-11 18:48:42 +02:00
rich_text_label.cpp Fix RichTextLabel custom_effects export to be properly filtered in the Editor 2021-06-25 22:58:46 +10:00
rich_text_label.h Merge pull request #35608 from golfinq/master 2021-06-20 18:51:15 +02:00
scroll_bar.cpp Fix crashes in *_input functions 2021-04-05 08:52:21 +02:00
scroll_bar.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
scroll_container.cpp Merge pull request #49719 from LightningAA/rename-node-is-ancestor-of 2021-06-29 12:07:25 +02:00
scroll_container.h Remove clips_input() method and use clip_content 2021-06-25 15:46:37 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
separator.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
separator.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
shortcut.cpp Fix InputMap.action_erase_event() failing to erase events correctly. 2021-05-19 11:43:02 +01:00
shortcut.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
slider.cpp Fix vertical slider grabber_area height calculation 2021-06-13 11:23:26 -03:00
slider.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
spin_box.cpp Use mouse and joypad enums instead of plain integers 2021-06-20 11:54:24 -04:00
spin_box.h Documentation search fixes 2021-06-16 09:43:34 -07:00
split_container.cpp Make invisible SplitContainer nodes correctly calculate the minimal size of its children 2021-07-02 14:39:50 -03:00
split_container.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
subviewport_container.cpp Fix crashes in *_input functions 2021-04-05 08:52:21 +02:00
subviewport_container.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
tab_container.cpp Rename instance()->instantiate() when it's a verb 2021-06-19 20:49:18 -06:00
tab_container.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
tabs.cpp Rename instance()->instantiate() when it's a verb 2021-06-19 20:49:18 -06:00
tabs.h Implement Tabs minimum size 2021-03-30 16:11:35 +02:00
text_edit.cpp LineEdit: Respect max_length by truncating text to append 2021-07-06 18:03:03 +02:00
text_edit.h LineEdit: Respect max_length by truncating text to append 2021-07-06 18:03:03 +02:00
texture_button.cpp TextureButton Update min size on any texture change 2021-06-11 13:39:51 +02:00
texture_button.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
texture_progress_bar.cpp Improve nine patch behavior of TextureProgressBar 2021-06-21 10:07:49 +08:00
texture_progress_bar.h Improve nine patch behavior of TextureProgressBar 2021-06-21 10:07:49 +08:00
texture_rect.cpp Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
texture_rect.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00
tree.cpp Clean up Tree 2021-07-04 13:13:53 -03:00
tree.h Clean up Tree 2021-07-04 13:13:53 -03:00
video_player.cpp Fix editor suffixes and degrees conversion 2021-06-30 12:38:25 -03:00
video_player.h Initialize class variables with default values in scene/ [2/2] 2021-02-09 18:24:36 +01:00