We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a82135 commit 1a9fb98Copy full SHA for 1a9fb98
Assets/MRTK/SDK/Features/UX/Interactable/Scripts/Interactable.cs
@@ -1513,11 +1513,13 @@ public void OnSpeechKeywordRecognized(SpeechEventData eventData)
1513
1514
if (eventData.Command.Keyword == VoiceCommand && (!VoiceRequiresFocus || HasFocus) && CanInteract())
1515
{
1516
+ bool hadFocus = HasFocus;
1517
StartGlobalVisual(true);
1518
HasVoiceCommand = true;
1519
SendVoiceCommands(VoiceCommand, 0, 1);
1520
TriggerOnClick();
1521
eventData.Use();
1522
+ HasFocus = hadFocus;
1523
}
1524
1525
0 commit comments