|
res.is_extended = ( |
|
bool(((scan_code >> 8) & 0xFF) & 0xE0) or res.vk_code in extended_keys |
|
) |
In the expression, it ensures a single bit of 0xE0 matches to scan_code >> 8, and therefore the & 0xFF makes no sense. I think the later logical and sign should be equal to check
pyinterception/src/interception/_keycodes.py
Lines 394 to 396 in f956108
In the expression, it ensures a single bit of 0xE0 matches to
scan_code >> 8, and therefore the & 0xFF makes no sense. I think the later logical and sign should be equal to check