Closed mischief closed 5 years ago
This is because isPathMatch
only compares the len(pattern)
first bytes,
given pattern "/sys/kbd/<"
and path "/sys/kbd/<space>"
, this yields true.
A naïve patch breaks the unittests, I'm not sure yet if any code relies on this behaviour.
yes, it does just compare the bytes. however the current implementation seems to preclude the binding of the "<" key, which is an undesirable limitation of a library like this. also using these weird /sys
strings is silly.
Keypress handling has been reworked and this should be working now. :+1:
the following code will produce this message when space is pressed:
this is certainly unexpected behavior.