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

make KeyCode.__or__ like KeyMod #54

Open
tlambert03 opened this issue Aug 1, 2022 · 0 comments
Open

make KeyCode.__or__ like KeyMod #54

tlambert03 opened this issue Aug 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tlambert03
Copy link
Member

clever implementation

however, nitpick, reversing this does not result in a KeyCombo:

In [1]: from app_model.types import KeyCode, KeyMod

In [2]: KeyMod.CtrlCmd | KeyCode.KeyM
Out[2]: <KeyCombo.CtrlCmd|KeyM: 2078>

In [3]: KeyCode.KeyM | KeyMod.CtrlCmd
Out[3]: 2078

Originally posted by @kne42 in napari/napari#4784 (comment)

@tlambert03 tlambert03 added the enhancement New feature or request label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant