Skip to content

Commit d164bfa

Browse files
committed
Disable accesskit methods and fix Node's accesskit related methods
1 parent edf7f9b commit d164bfa

File tree

86 files changed

+533
-760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+533
-760
lines changed

doc/classes/Control.xml

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,14 @@
2424
<link title="All GUI Demos">https://github.com/godotengine/godot-demo-projects/tree/master/gui</link>
2525
</tutorials>
2626
<methods>
27-
<method name="_accessibility_get_contextual_info" qualifiers="virtual const">
28-
<return type="String" />
29-
<description>
30-
Return the description of the keyboard shortcuts and other contextual help for this control.
31-
</description>
32-
</method>
3327
<method name="_can_drop_data" qualifiers="virtual const">
3428
<return type="bool" />
3529
<param index="0" name="at_position" type="Vector2" />
3630
<param index="1" name="data" type="Variant" />
3731
<description>
3832
Godot calls this method to test if [param data] from a control's [method _get_drag_data] can be dropped at [param at_position]. [param at_position] is local to this control.
3933
This method should only be used to test the data. Process the data in [method _drop_data].
40-
[b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position.
34+
[b]Note:[/b] If the drag was initiated by a keyboard shortcut, [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position.
4135
[codeblocks]
4236
[gdscript]
4337
func _can_drop_data(position, data):
@@ -62,7 +56,7 @@
6256
<param index="1" name="data" type="Variant" />
6357
<description>
6458
Godot calls this method to pass you the [param data] from a control's [method _get_drag_data] result. Godot first calls [method _can_drop_data] to test if [param data] is allowed to drop at [param at_position] where [param at_position] is local to this control.
65-
[b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position.
59+
[b]Note:[/b] If the drag was initiated by a keyboard shortcut, [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position.
6660
[codeblocks]
6761
[gdscript]
6862
func _can_drop_data(position, data):
@@ -85,20 +79,13 @@
8579
[/codeblocks]
8680
</description>
8781
</method>
88-
<method name="_get_accessibility_container_name" qualifiers="virtual const">
89-
<return type="String" />
90-
<param index="0" name="node" type="Node" />
91-
<description>
92-
Override this method to return a human-readable description of the position of the child [param node] in the custom container, added to the [member accessibility_name].
93-
</description>
94-
</method>
9582
<method name="_get_drag_data" qualifiers="virtual">
9683
<return type="Variant" />
9784
<param index="0" name="at_position" type="Vector2" />
9885
<description>
9986
Godot calls this method to get data that can be dragged and dropped onto controls that expect drop data. Returns [code]null[/code] if there is no data to drag. Controls that want to receive drop data should implement [method _can_drop_data] and [method _drop_data]. [param at_position] is local to this control. Drag may be forced with [method force_drag].
10087
A preview that will follow the mouse that should represent the data can be set with [method set_drag_preview]. A good time to set the preview is in this method.
101-
[b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drag position.
88+
[b]Note:[/b] If the drag was initiated by a keyboard shortcut, [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drag position.
10289
[codeblocks]
10390
[gdscript]
10491
func _get_drag_data(position):
@@ -239,18 +226,6 @@
239226
[b]Note:[/b] This does not affect the methods in [Input], only the way events are propagated.
240227
</description>
241228
</method>
242-
<method name="accessibility_drag">
243-
<return type="void" />
244-
<description>
245-
Starts drag-and-drop operation without using a mouse.
246-
</description>
247-
</method>
248-
<method name="accessibility_drop">
249-
<return type="void" />
250-
<description>
251-
Ends drag-and-drop operation without using a mouse.
252-
</description>
253-
</method>
254229
<method name="add_theme_color_override">
255230
<return type="void" />
256231
<param index="0" name="name" type="StringName" />
@@ -975,27 +950,6 @@
975950
</method>
976951
</methods>
977952
<members>
978-
<member name="accessibility_controls_nodes" type="NodePath[]" setter="set_accessibility_controls_nodes" getter="get_accessibility_controls_nodes" default="[]">
979-
The paths to the nodes which are controlled by this node.
980-
</member>
981-
<member name="accessibility_described_by_nodes" type="NodePath[]" setter="set_accessibility_described_by_nodes" getter="get_accessibility_described_by_nodes" default="[]">
982-
The paths to the nodes which are describing this node.
983-
</member>
984-
<member name="accessibility_description" type="String" setter="set_accessibility_description" getter="get_accessibility_description" default="&quot;&quot;">
985-
The human-readable node description that is reported to assistive apps.
986-
</member>
987-
<member name="accessibility_flow_to_nodes" type="NodePath[]" setter="set_accessibility_flow_to_nodes" getter="get_accessibility_flow_to_nodes" default="[]">
988-
The paths to the nodes which this node flows into.
989-
</member>
990-
<member name="accessibility_labeled_by_nodes" type="NodePath[]" setter="set_accessibility_labeled_by_nodes" getter="get_accessibility_labeled_by_nodes" default="[]">
991-
The paths to the nodes which label this node.
992-
</member>
993-
<member name="accessibility_live" type="int" setter="set_accessibility_live" getter="get_accessibility_live" enum="DisplayServer.AccessibilityLiveMode" default="0">
994-
The mode with which a live region updates. A live region is a [Node] that is updated as a result of an external event when the user's focus may be elsewhere.
995-
</member>
996-
<member name="accessibility_name" type="String" setter="set_accessibility_name" getter="get_accessibility_name" default="&quot;&quot;">
997-
The human-readable node name that is reported to assistive apps.
998-
</member>
999953
<member name="anchor_bottom" type="float" setter="_set_anchor" getter="get_anchor" default="0.0">
1000954
Anchors the bottom edge of the node to the origin, the center, or the end of its parent control. It changes how the bottom offset updates when the node moves or changes size. You can use one of the [enum Anchor] constants for convenience.
1001955
</member>

0 commit comments

Comments
 (0)