Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard shortcuts #102

Open
can-lehmann opened this issue Oct 8, 2023 · 1 comment
Open

Keyboard shortcuts #102

can-lehmann opened this issue Oct 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@can-lehmann
Copy link
Owner

Currently there is limited support for keyboard shortcuts (mainly Button.shortcut). The main missing feature is keyboard shortcuts for ModelButtons inside PopoverMenu's.

@can-lehmann can-lehmann added the enhancement New feature or request label Oct 8, 2023
@PhilippMDoerner
Copy link
Contributor

General question to see if I'm understanding how shortcut works correctly:
Basically it's every time:

  • Create a controller
  • Define a scope for it (this widget, parent widget, global root widget (window?))
  • Create a shortcut struct out of hotkey button represented as string and its action (one of which can be a signal, defined as signal(<signalName>))
  • Register shortcut struct with controller object

Right?
That's just for my understanding of the entire thing.

Looking further though, would it be possible to generally enable global Shortcuts for all kinds of Widgets? Or rather, is there anything that speaks against that?

@can-lehmann can-lehmann added this to the Owlkettle 4.0.0 milestone Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants