summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2022-01-20 08:44:27 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2022-01-25 13:51:56 -0300
commit73c225838fa2e6f3ca3adf328375d1c659dc261b (patch)
treef429f3965516b6042e4219d4ca82e027f5801bca /doc
parent203e07aa39d5b55c8c16842d3e2e628209a063c4 (diff)
Make popup menus focus items automatically when not using the mouse
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/PopupMenu.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/PopupMenu.xml b/doc/classes/PopupMenu.xml
index 108c674ef7..eb1b0aada7 100644
--- a/doc/classes/PopupMenu.xml
+++ b/doc/classes/PopupMenu.xml
@@ -331,6 +331,13 @@
[b]Note:[/b] The indices of items after the removed item will be shifted by one.
</description>
</method>
+ <method name="set_current_index">
+ <return type="void" />
+ <argument index="0" name="index" type="int" />
+ <description>
+ Sets the currently focused item as the given [code]index[/code].
+ </description>
+ </method>
<method name="set_item_accelerator">
<return type="void" />
<argument index="0" name="index" type="int" />