Skip to content

is_extended condition seems wrong #49

@mokurin000

Description

@mokurin000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions