From 12ded391f5fd720fff0c30d41d72600a29cb7937 Mon Sep 17 00:00:00 2001 From: Eric M Date: Mon, 30 Nov 2020 00:11:40 +1000 Subject: Exposed shortcut_context property to scripting and added documentation. I didn't expose this as a property or add documentation in the original PR #42109. --- doc/classes/BaseButton.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/BaseButton.xml b/doc/classes/BaseButton.xml index 378df1ce65..45ef4cb14c 100644 --- a/doc/classes/BaseButton.xml +++ b/doc/classes/BaseButton.xml @@ -65,6 +65,9 @@ [Shortcut] associated to the button. + + The [Node] which must be a parent of the focused GUI [Control] for the shortcut to be activated. If [code]null[/code], the shortcut can be activated when any control is focused (a global shortcut). This allows shortcuts to be accepted only when the user has a certain area of the GUI focused. + If [code]true[/code], the button will add information about its shortcut in the tooltip. -- cgit v1.2.3