Skip to content

Commit b37eeb2

Browse files
committed
Shortcut bug breaking hexeditor
1 parent 93a0859 commit b37eeb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Terminal.Gui/Views/Shortcut.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,9 @@ void CommandViewOnSelecting (object? sender, CommandEventArgs e)
483483
if (e.Context.Data != this)
484484
{
485485
// Forward command to ourselves
486-
InvokeCommand (Command.Select, new (Command.Select, null, null, this));
486+
e.Cancel = InvokeCommand (Command.Select, new (Command.Select, null, null, this)) is true;
487+
488+
return;
487489
}
488490

489491
e.Cancel = true;

0 commit comments

Comments
 (0)