You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Key events involving the control key don't work as expected #17146
We realized that no keybindings on Windows work (the "reload"/Ctrl-R binding doesn't work for example).
This is because Glutin sends 2 things:
the character matching the keyboard layout (ReceivedCharacter(ch))
the key code and modifiers (KeyboardInput)
But the character that is sent when the Ctrl key is pressed is a different unicode character.
For exemple, Ctrl-L will send the "Form Feed" \u{c} character, not L.
A possible approach is to map the key code to the character. This is what is done in the DOM code here:
@paulrouget do you know what the current situation is regarding this issue? As far as I can tell control key input still isn't working properly after the Glutin update.
@paulrouget I've been testing your PR for this and it works somewhat but there are still some definite issues. On first launch using Ctrl + L to open the URL dialog works consistently but subsequent attempts at doing this (ex. load servo.org homepage -> press Ctrl + L to navigate to new page -> press Ctrl + L again to navigate to another new page) do not bring up the dialog again. It seems to work only once and then rarely or not at all afterwards. Should I file a new issue for this behaviour?
Edit: It's actually easier than that to reproduce. You can just exit the dialog box after bringing it up with Ctrl + L and you won't be able to bring up back up again easily.
Edit 2: I've now been able to bring up the URL dialog without even pressing Ctrl and L at the same time at one point. There's definitely something off here.
Activity
jklepatch commentedon Jun 3, 2017
I am working on this
atouchet commentedon Jun 3, 2017
Is #16459 related to this issue?
paulrouget commentedon Jun 4, 2017
Very likely, yes.
atouchet commentedon Mar 14, 2018
@paulrouget do you know what the current situation is regarding this issue? As far as I can tell control key input still isn't working properly after the Glutin update.
paulrouget commentedon Mar 14, 2018
We need to investigate see if that needs to be fixed in glutin or in servo.
Auto merge of #20327 - kwonoj:fix-ignore, r=paulrouget
servo: Merge #20327 - fix(keyevent): do not emit default ignorable co…
Auto merge of #21250 - paulrouget:fixkeys, r=jdm
Auto merge of #21250 - paulrouget:fixkeys, r=jdm
Auto merge of #21250 - paulrouget:fixkeys, r=jdm
atouchet commentedon Jul 31, 2018
@paulrouget I've been testing your PR for this and it works somewhat but there are still some definite issues. On first launch using Ctrl + L to open the URL dialog works consistently but subsequent attempts at doing this (ex. load servo.org homepage -> press Ctrl + L to navigate to new page -> press Ctrl + L again to navigate to another new page) do not bring up the dialog again. It seems to work only once and then rarely or not at all afterwards. Should I file a new issue for this behaviour?
Edit: It's actually easier than that to reproduce. You can just exit the dialog box after bringing it up with Ctrl + L and you won't be able to bring up back up again easily.
Edit 2: I've now been able to bring up the URL dialog without even pressing Ctrl and L at the same time at one point. There's definitely something off here.
paulrouget commentedon Jul 31, 2018
Yes please.
Thanks!
servo: Merge #20327 - fix(keyevent): do not emit default ignorable co…
servo: Merge #20327 - fix(keyevent): do not emit default ignorable co…
servo: Merge #20327 - fix(keyevent): do not emit default ignorable co…