emersonrp / bindcontrol

Keybind manager for City of Heroes
GNU General Public License v3.0
3 stars 3 forks source link

Prt SC/SysRq cannot be assigned as a bind key. #41

Open autobotcoop opened 4 months ago

autobotcoop commented 4 months ago

Prt SC/SysRq cannot be assigned as a bind key. Not sure if it's a general Windows issue blocking the input, as this will bring up the Snip Tool, or something else.

emersonrp commented 4 months ago

Oh yeah looks like BindControl doesn't know about SYSRQ so quietly fails when you try to bind it. If it's also doing something else like launching the Snip Tool or something, that's probably a Window config issue. I can add it to the keys it understands and see if that helps.

emersonrp commented 4 months ago

This is a weird one. Windows simply doesn't pass the SYSRQ keydown to Python. Linux, it works fine, and has all along. Interestingly, Windows -does- pass a keyup for it. This might be a bug in wxPython. I'm going to dig further.

emersonrp commented 4 months ago

I -might- be able to put together some logic to detect that SYSRQ was pressed from the subsequent keyup event, which would involve rethinking keystroke/controller/mouse event detection in the KeySelect dialog -again-, which sadly it needs anyway, so this is in the cooker but might be a little bit. Meanwhile, I'm going to keep researching a little and might open a bug with the wxpython people.

emersonrp commented 4 months ago

Filed a bug upstream:

https://github.com/wxWidgets/Phoenix/issues/2558