Browse Source

Fixed space in graph view opening in text boxes

Krzysztof Krysiński 2 months ago
parent
commit
98660bf889
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PixiEditor/Views/Nodes/NodeGraphView.cs

+ 1 - 1
src/PixiEditor/Views/Nodes/NodeGraphView.cs

@@ -274,7 +274,7 @@ internal class NodeGraphView : Zoombox.Zoombox
     protected override void OnKeyDown(KeyEventArgs e)
     protected override void OnKeyDown(KeyEventArgs e)
     {
     {
         base.OnKeyDown(e);
         base.OnKeyDown(e);
-        if (e.Key == Key.Space)
+        if (e.Key == Key.Space && e.Source.Equals(rootPanel))
         {
         {
             rootPanel.ContextFlyout?.ShowAt(rootPanel);
             rootPanel.ContextFlyout?.ShowAt(rootPanel);
             e.Handled = true;
             e.Handled = true;