summaryrefslogtreecommitdiffstats
path: root/scene/gui/line_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change dropdown type filter to Texture2D in certain nodesBlueCube33102023-10-281-1/+1
|
* Make LineEdit secret character easier to change and enterjsjtxietian2023-10-191-5/+16
| | | | | | | 1. Allow values longer than 1 character in the property, but trim characters after the first one. 2. Allow empty strings, this acts like if a space was used as a secret character, so that an error isn't printed when you erase all characters in the property.
* Accept cancel event when unfocusing LineEditkobewi2023-10-061-0/+1
|
* Merge pull request #82811 from MewPurPur/more-line-edit-organizationRémi Verschelde2023-10-061-2/+4
|\ | | | | | | Place LineEdit secret in its own section
| * Place LineEdit secret in its own sectionMewPurPur2023-10-041-2/+4
| |
* | Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platformajreckof2023-09-191-4/+4
|/
* Merge pull request #81312 from YuriSizov/theme-static-bindsRémi Verschelde2023-09-111-23/+25
|\ | | | | | | Register theme properties with ThemeDB
| * Register theme properties with ThemeDBYuri Sizov2023-09-111-23/+25
| |
* | Fix FindReplaceBar losing focus too earlykobewi2023-09-081-1/+1
|/
* [LineEdit] Update line edit offset on text delete.bruvzg2023-09-081-5/+1
|
* Unfocus LineEdit when pressing Escapekobewi2023-08-291-0/+5
|
* [Text Server] Store extra spacing of individual font variations.bruvzg2023-08-241-3/+0
|
* [TextServer] Fix system font fallback and caret/selection behavior for ↵bruvzg2023-08-151-3/+6
| | | | composite characters.
* Add drag and drop option for line edit and rich text labelunknown2023-07-191-7/+20
|
* Preserve selection when focusing SpinBoxkobewi2023-06-101-0/+16
|
* Fix LineEdit expanding to text lengthIgorrreha2023-05-261-2/+2
| | | | | | | | | | Fix for issue #77474 Remove wrong tab Change the comment to more relevant Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Merge pull request #74623 from MewPurPur/edit-text-with-styleYuri Sizov2023-04-171-7/+7
|\ | | | | Code style improvements to text_edit and related
| * Code style improvements to text_edit and relatedVolTer2023-04-081-7/+7
| |
* | [TextServer] Use dedicated flag for object replacement characters.bruvzg2023-04-121-1/+1
|/
* Implement LineEdit.get_selected_text()VolTer2023-03-301-5/+14
|
* Fix get_drag_data not overridable in some Controlskobewi2023-03-201-0/+5
|
* Fix IME position in the single window mode sub-windows.bruvzg2023-03-061-4/+10
|
* Merge pull request #72378 from maximkulkin/line-edit-consume-eventsRémi Verschelde2023-02-101-0/+10
|\ | | | | | | Fix LineEdit not consuming events
| * Fix LineEdit not consuming eventsMaxim Kulkin2023-02-031-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The most important issue is LineEdit not consuming "ui_text_submit" event which makes pressing Enter after editing escape to other components causing unwanted interactions. Also fix handling mouse button interactions not consuming some events. Also implement early return in case we know which event type it is and there is no point in checking other event types. PS I'm also suspicious that mouse motion events also need to be consumed, but haven't explored those cases.
* | Always show caret when moving in LineEditMarcus Brummer2023-01-311-0/+2
|/
* Fix `LineEdit` and `TextEdit` context menus not customizableDanil Alexeev2023-01-271-83/+116
|
* [Windows] Fix committing IME text without IME deactivation.bruvzg2023-01-261-0/+4
|
* Cleanup and unify keyboard input.bruvzg2023-01-231-19/+29
| | | | | | | | | | - Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes. - Unify IME behaviour, add inline composition string display on Windows and X11. - Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events. - Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS. - Add support for media key handling on macOS. Co-authored-by: Raul Santos <raulsntos@gmail.com>
* Convert en_GB spelling to en_US with codespellRémi Verschelde2023-01-231-1/+1
|
* Use BitField<> in core type masksJuan Linietsky2023-01-081-1/+1
| | | | | | | | * All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* fixed bug showing only two digits in color pickerLucas Laukka2022-12-071-2/+2
|
* Merge pull request #67123 from ↵Rémi Verschelde2022-12-051-36/+33
|\ | | | | | | | | | | Rindbee/improve-caret-draw-conditions-for-LineEdit Improve caret drawing conditions for `LineEdit`
| * Improve caret drawing conditions for `LineEdit`Rindbee2022-10-091-36/+33
| | | | | | | | | | | | | | | | | | | | | | Now, `caret_can_draw` will be validated when a condition that affects the drawability of the `LineEdit`'s caret changes; `draw_caret` will be toggled when the caret's visibility is toggled due to blink, and `draw_caret` will be `false` when `caret_blink_enabled` is disabled. Fix toggling `caret_blink_enabled` could cause caret to no longer be displayed. Fix opening the context menu causing caret to no longer appear.
* | [Line Edit] Ignore placeholder text when drawing caret.bruvzg2022-11-081-8/+21
| |
* | Allow selecting SpinBox & LineEdit text when focus entersHaoyu Qiu2022-10-291-0/+29
| |
* | Abort LineEdit shaping if no font is set to avoid unnecessary error messages.bruvzg2022-10-141-3/+6
|/
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-2/+2
| | | | change warnings=all to use /W4.
* Add split caret direction markers. Fix block/overtype caret size.bruvzg2022-10-071-1/+12
|
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-1/+1
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Rename every instance of `caret_blink_speed` to `caret_blink_interval`Micky2022-09-061-12/+12
| | | | | | It's been changed in EditorSettings, LineEdit, TextEdit. Affects setters and getters, and passed parameters, too.
* Add a lifecycle method for manual theme item caching to ControlYuri Sizov2022-09-011-36/+67
|
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-33/+33
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Merge pull request #62771 from bruvzg/line_edit_trimRémi Verschelde2022-08-261-24/+24
|\
| * Fix LineEdit text incorrectly trimmed due to rounding errors.bruvzg2022-07-101-24/+24
| |
* | Add some codes, returnes directly if the value is not changed.风青山2022-08-231-9/+27
| | | | | | | | Avoid executing the following value-changed logics if the value does not really change.
* | Make `_validate_property` a multilevel methodYuri Sizov2022-08-221-3/+3
| |
* | Add support for multiple virtual keyboard typesBrian Semrau2022-08-041-2/+22
|/
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-85/+14
|
* Change LineEdit caret blink to use processNolkaloid2022-07-051-14/+23
| | | | Now using internal process for blinking instead of a Timer node