emersonrp / bindcontrol

Keybind manager for City of Heroes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

autobotcoop opened this issue · comments

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.

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.

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.

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.

Filed a bug upstream:

wxWidgets/Phoenix#2558