Explorar el Código

Shortcut bug breaking hexeditor

Tig hace 10 meses
padre
commit
b37eeb23ab
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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;