Rather than list specific cases <Tab><Space>, I think it better to generalize.
This PR proposes a way to generalize the mapping of keycodes to internal data-structures (description dictionary, native cache).
Also a couple other improvements:
Improved regex escaping in s:has_children()
Improved loop in s:wait_with_timeout(), there was a 20ms window before the timeout where if the user pressed a key in that timespan it would be considered not pressed.
Rather than list specific cases
<Tab>
<Space>
, I think it better to generalize.This PR proposes a way to generalize the mapping of keycodes to internal data-structures (description dictionary, native cache).
Also a couple other improvements: