You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a submenu to the context menu of the plugin's specified slot. The submenu is not automatically handled, you need to connect to its signals yourself. Also the submenu is freed on every popup, so provide a new [PopupMenu] every time.
Pops up an editor dialog for quick selecting a resource file. The [param callback] must take a single argument of type [String] which will contain the path of the selected resource or be empty if the dialog is canceled. If [param base_types] is provided, the dialog will only show resources that match these types. Only types deriving from [Resource] are supported.
Copy file name to clipboardExpand all lines: doc/classes/LineEdit.xml
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
- When the [LineEdit] control is focused using the keyboard arrow keys, it will only gain focus and not enter edit mode.
9
9
- To enter edit mode, click on the control with the mouse or press the [code]ui_text_submit[/code] action (by default [kbd]Enter[/kbd] or [kbd]Kp Enter[/kbd]).
10
10
- To exit edit mode, press [code]ui_text_submit[/code] or [code]ui_cancel[/code] (by default [kbd]Escape[/kbd]) actions.
11
-
- Check [method is_editing] and [signal editing_toggled] for more information.
11
+
- Check [method edit], [method unedit], [method is_editing], and [signal editing_toggled] for more information.
12
12
[b]Important:[/b]
13
13
- Focusing the [LineEdit] with [code]ui_focus_next[/code] (by default [kbd]Tab[/kbd]) or [code]ui_focus_prev[/code] (by default [kbd]Shift + Tab[/kbd]) or [method Control.grab_focus] still enters edit mode (for compatibility).
14
14
[LineEdit] features many built-in shortcuts that are always available ([kbd]Ctrl[/kbd] here maps to [kbd]Cmd[/kbd] on macOS):
@@ -75,6 +75,13 @@
75
75
Clears the current selection.
76
76
</description>
77
77
</method>
78
+
<methodname="edit">
79
+
<returntype="void" />
80
+
<description>
81
+
Allows entering edit mode whether the [LineEdit] is focused or not.
82
+
Use [method Callable.call_deferred] if you want to enter edit mode on [signal text_submitted].
0 commit comments