racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
454 stars 93 forks source link

AltGr + q does not insert / #393

Open malbarbo opened 4 years ago

malbarbo commented 4 years ago

Using Windows 10 and pressing AltGr + q inserts / in any application, except in DrRacket where it triggers undo.

On Linux AltGr + q works fine on DrRacket and inserts /.

Here is the output of running https://github.com/racket/gui/blob/master/gui-test/tests/gracket/showkey.rkt on Windows 10 and pressing AltGr+q

1 KEY: control
  rel-code: press
  other-codes: (#f #f #f #f)
  mods: CTL
2 KEY: menu
  rel-code: press
  other-codes: (#f #f #f #f)
  mods: META CTL = ALTGR
3 KEY: "/" = ASCII 47
  rel-code: press
  other-codes: (#f "q" = ASCII 113 "Q" = ASCII 81 #f)
  mods: META CTL = ALTGR
4 KEY: release
  rel-code: "q" = ASCII 113
  other-codes: ("Q" = ASCII 81 "/" = ASCII 47 #f #f)
  mods: META CTL = ALTGR
5 KEY: release
  rel-code: menu
  other-codes: (#f #f #f #f)
  mods:
oyarsa commented 3 years ago

I'm experiencing the same thing on Windows 10. My keyboard layout is ABNT-2.

A workaround for this is using PowerToys' Keyboard Manager to override the AltGr + Q shortcut to output a real / instead of relying on DrRacket to do that. You can even restrict that remapping to just DrRacket.