Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/exp/shiny: key repeats reported as release + press #18566
What did you do?
This program opens an x/exp/shiny window and reports key presses:
What did you expect to see?
According to https://github.com/golang/mobile/blob/master/event/key/key.go#L50, key repeats should report key.DirNone. So when pressing and holding down a key for a while, I expect to see:
What did you see instead?
Holding down a key results in repeated Release/Press events:
What version of Go are you using (
I wasn't able to reproduce this on NT, so I looked to Linux as the culprit.
According to xorg
Yeah, it's a bug in the x11driver, although if fixing this involves XKB's DetectableAutorepeat, as @as suggested, then it's not going to be trivial. The xgb library that we use says, in https://github.com/BurntSushi/xgb/blob/master/doc.go: "XKB is the only extension that intentionally does not work... due to its complexity and my current mental incapacity to test it."