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

Expand keypress events guide #413

Open
psobolewskiPhD opened this issue Apr 26, 2024 · 0 comments
Open

Expand keypress events guide #413

psobolewskiPhD opened this issue Apr 26, 2024 · 0 comments
Labels
content Ideas for new or improved content good first issue Good for newcomers task

Comments

@psobolewskiPhD
Copy link
Member

🧰 Task

Expand this section:
https://napari.org/dev/howtos/extending/connecting_events.html#listening-for-keypress-events

To also include an example using a layer, e.g. Image.bind_key -- this will fire on a selected Image layer
Or even a specific layer, like viewer.layers['my layer'].bind_key -- this will only fire if that layer is selected

It may be worth updating the example (https://github.com/napari/napari/blob/main/examples/custom_key_bindings.py) as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Ideas for new or improved content good first issue Good for newcomers task
Projects
Status: Prioritized
Development

No branches or pull requests

1 participant