Browse Source

Shortcut bug breaking hexeditor

Tig 8 months ago
parent
commit
b37eeb23ab
1 changed files with 3 additions and 1 deletions
  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)
                 if (e.Context.Data != this)
                 {
                 {
                     // Forward command to ourselves
                     // 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;
                 e.Cancel = true;