Skip to content

Commit

Permalink
Prevent double hotkey processing in some situations #3348
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Nov 7, 2024
1 parent 0a503d2 commit 9d130ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Input/KeyboardListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ private void Listen()
input.ReadTimeout = int.MaxValue;

var data = input.Read();
if (cancellationTokenSource.Token.IsCancellationRequested) break;
if (data.Length > 1 && data[0] == AsusHid.INPUT_ID && data[1] > 0 && data[1] != 236)
{
Logger.WriteLine($"Key: {data[1]}");
Expand Down

0 comments on commit 9d130ca

Please sign in to comment.