Ver Fonte

Shortcut bug breaking hexeditor

Tig há 10 meses atrás
pai
commit
b37eeb23ab
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      Terminal.Gui/Views/Shortcut.cs

+ 3 - 1
Terminal.Gui/Views/Shortcut.cs

@@ -483,7 +483,9 @@ public class Shortcut : View, IOrientation, IDesignable
                 if (e.Context.Data != this)
                 {
                     // Forward command to ourselves
-                    InvokeCommand (Command.Select, new (Command.Select, null, null, this));
+                    e.Cancel = InvokeCommand (Command.Select, new (Command.Select, null, null, this)) is true;
+
+                    return;
                 }
 
                 e.Cancel = true;