Skip to content

Commit ef782a9

Browse files
committed
Key binds are disabled if any object is selected by the event system.
1 parent 12c8460 commit ef782a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/DevConsoleMono.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,8 @@ private void LateUpdate()
741741
}
742742
}
743743

744-
// Check bindings (as long as the input field isn't focused!)
745-
if (BindingsIsEnabled && !_inputField.isFocused)
744+
// Check bindings (as long as the input field or any other object isn't focused!)
745+
if (BindingsIsEnabled && !_inputField.isFocused && (EventSystem.current == null || EventSystem.current.currentSelectedGameObject == null))
746746
{
747747
try
748748
{

0 commit comments

Comments
 (0)