浏览代码

Fixed space in graph view opening in text boxes

Krzysztof Krysiński 6 月之前
父节点
当前提交
98660bf889
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
     {
         base.OnKeyDown(e);
-        if (e.Key == Key.Space)
+        if (e.Key == Key.Space && e.Source.Equals(rootPanel))
         {
             rootPanel.ContextFlyout?.ShowAt(rootPanel);
             e.Handled = true;