Skip to content

Commit

Permalink
Disable key logic when no view loaded
Browse files Browse the repository at this point in the history
Fixes #286
  • Loading branch information
tznind committed Jan 8, 2024
1 parent b0d0d4a commit 4d710a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UI/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void Run(Options options)

Application.KeyDown += (_, k) =>
{
if (this.editing)
if (this.editing || this.viewBeingEdited == null)
{
return;
}
Expand Down

0 comments on commit 4d710a2

Please sign in to comment.