Skip to content

Keyboard control wx global catch implementation #1

@INPUTrrr0

Description

@INPUTrrr0

The user always needs to press the "+1 frame" button. It can be very tiring clicking the mouse all the time.
Therefore, I tried to implement some keyboard trigger for the most commonly pressed button. However, in wx, to implement a keyboard trigger, I find the only way is to bind a
b=wx.Button(self,label='Button',pos=(100,100)) b.Bind(wx.EVT_KEY_DOWN, self.onButtonKeyEvent)
This requires the button to be focused. I have tried to bind the keydown event to the wx frame. However, seems like it is not possible. I have looked for many ways to catch keydown event globally but I wasn't able to find a solution. Is there a possible way to catch a keyboard event globally in this tool?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions