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: value of event/key.Event.Rune inconsistent across platforms while control key is pressed #17011
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
We could do something similar to https://git.merproject.org/mer-core/qtbase/blob/dfe853bff90444edf92a993e391df853780c9e8d/src/plugins/platforms/windows/qwindowskeymapper.cpp#L539 (I just googled), if we want to return 'c' on windows.
I think that all platforms should behave the same. Specifically:
Ctrl-A should have Rune == -1.
CodeReturnEnter has Rune == '\n', especially as you can't set Rune == "\r\n" (a string) on Darwin.
CodeTab should have Rune == '\t'.
CodeDeleteBackspace (and CodeEscape) should have Rune == -1. I wouldn't expect a text editor to want '\x08' or '\x1b' runes inserted into the text.
WDYT? I'm happy to do the Linux and Mac changes if there's consensus.