mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Prevent double hotkey processing in some situations https://github.com/seerge/g-helper/issues/3348
This commit is contained in:
@@ -56,6 +56,7 @@ namespace GHelper.Input
|
|||||||
input.ReadTimeout = int.MaxValue;
|
input.ReadTimeout = int.MaxValue;
|
||||||
|
|
||||||
var data = input.Read();
|
var data = input.Read();
|
||||||
|
if (cancellationTokenSource.Token.IsCancellationRequested) break;
|
||||||
if (data.Length > 1 && data[0] == AsusHid.INPUT_ID && data[1] > 0 && data[1] != 236)
|
if (data.Length > 1 && data[0] == AsusHid.INPUT_ID && data[1] > 0 && data[1] != 236)
|
||||||
{
|
{
|
||||||
Logger.WriteLine($"Key: {data[1]}");
|
Logger.WriteLine($"Key: {data[1]}");
|
||||||
|
|||||||
Reference in New Issue
Block a user