Skip to content

Commit

Permalink
dont open the symbol browser unless the cursor is in a valid position
Browse files Browse the repository at this point in the history
  • Loading branch information
domportera committed Oct 8, 2022
1 parent 03789bd commit 41c41d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion T3/Gui/Graph/Interaction/SymbolBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void Draw()
{
if (!IsOpen)
{
if (!ImGui.IsWindowFocused() || !ImGui.IsKeyReleased((ImGuiKey)Key.Tab))
if (!ImGui.IsWindowFocused() || !ImGui.IsKeyReleased((ImGuiKey)Key.Tab) || !ImGui.IsWindowHovered())
return;

if (NodeSelection.GetSelectedChildUis().Count() != 1)
Expand Down

0 comments on commit 41c41d9

Please sign in to comment.