readline
readline copied to clipboard
Modifier keys when losing/restoring app focus?
We're trying to figure out an issue on Windows, whereby the a s d f keys cease to work when losing and regaining focus in the app. The only external packages used are chzyer/readline and go.bug.st/serial.v1. I can't come up with any other conclusion so far than that it has to be related to the readline package, as that's the only one handling keyboard I/O.
It looks like after a focus switch, the app thinks one of the modified keys is (still?) being pressed, so that a s d f appear to act as ctrl-a ctrl-s ctrl-d and ctrl-f, for some reason.
I don't use Windows myself, and need to rely on others to help out with this. The issue is being chased and discussed over here: https://github.com/jeelabs/folie/issues/44
If anyone reading this has tips on how to figure this one out, please let me know...
GNU-Readline provides a complete listing of all the modifiers.
In winos the Alt- modifier is sometimes not released when tabbing between windows. This can be corrected by tapping the Alt key to restore the normal key functions.