Skip to content

Commit

Permalink
Fix single-character key presses
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcnaught committed Mar 15, 2023
1 parent 681e39e commit 7328541
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,13 @@ public async Task ProcessSingleKeyPress(string inKey, KeyPressKeyValue.KeyPressT
return;
}

// Single character
if (inKey.Length == 1)
{
this.PressKey(inKey[0], type);
return;
}

// Not recognised
throw new ArgumentException($"Function name \"{ inKey }\" not recognised");
}
Expand Down

0 comments on commit 7328541

Please sign in to comment.