-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Restore 'V' keybinding for layer visibiltiy toggle #6261
Conversation
Thanks, I've been annoyed at this for a while but always at times inconvenient to patch it ^^' |
I moved to 0.4.19 since it's a tiny fix. |
It should be 0.5.0 because the PR that broke this isn't in 0.4.18 (everything works fine on release), only in main and is slated for 0.5.0. |
wow... using always main made me think this was an issue in the wild for months ^^' |
This is one more reason I do (and like) monthly releases. |
This got the "Ready-to-merge" label 2 days ago and got no objections. Merging to move the queue forward. Thanks. |
* main: (21 commits) [pre-commit.ci] pre-commit autoupdate (napari#6266) ENH Make `_open_preferences_dialog` return `PreferencesDialog` (napari#6269) Fix link to artifacts in update dependecies comment (napari#6270) ci(dependabot): bump docker/login-action from 2.1.0 to 3.0.0 (napari#6263) FIX add `changing` event to `EventedDict` (napari#6268) Restore 'V' keybinding for layer visibiltiy toggle (napari#6261) remove: napari.qt.progress (deprecated in 0.4.11) (napari#6252) Fix `ShapeList.outline` validations for `int`/list like argument and add a test (napari#6215) Fix nitpicks in `id` and `title` `Action` fields in samples menu (napari#6267) ci(dependabot): bump actions/checkout from 2 to 4 (napari#6264) ci(dependabot): bump actions/setup-python from 2 to 4 (napari#6201) Fix typing in _app_model (napari#6059) Update `app-model`, `dask`, `fsspec`, `hypothesis`, `imageio`, `ipython`, `jsonschema`, `matplotlib`, `numpy`, `pandas`, `pillow`, `psygnal`, `pytest`, `qtconsole`, `qtpy`, `rich`, `scipy`, `superqt`, `tensorstore`, `tifffile`, `virtualenv`, `xarray`, `zarr` (napari#6265) Fix upgrade dependencies wokflow (napari#6211) Type _WeakCounter (napari#6246) convert Color to string (napari#6243) Partially fix translations testing (napari#6014) Allow to use all ViewerModel kwargs in Viewer constructor (napari#6209) MAINT: Replace `assert np.all(? == ?)` with `assert_array_equal` (napari#6244) Fix Python 3.11 StrEnum Compatibility (napari#6242) ...
* main: (21 commits) [pre-commit.ci] pre-commit autoupdate (napari#6266) ENH Make `_open_preferences_dialog` return `PreferencesDialog` (napari#6269) Fix link to artifacts in update dependecies comment (napari#6270) ci(dependabot): bump docker/login-action from 2.1.0 to 3.0.0 (napari#6263) FIX add `changing` event to `EventedDict` (napari#6268) Restore 'V' keybinding for layer visibiltiy toggle (napari#6261) remove: napari.qt.progress (deprecated in 0.4.11) (napari#6252) Fix `ShapeList.outline` validations for `int`/list like argument and add a test (napari#6215) Fix nitpicks in `id` and `title` `Action` fields in samples menu (napari#6267) ci(dependabot): bump actions/checkout from 2 to 4 (napari#6264) ci(dependabot): bump actions/setup-python from 2 to 4 (napari#6201) Fix typing in _app_model (napari#6059) Update `app-model`, `dask`, `fsspec`, `hypothesis`, `imageio`, `ipython`, `jsonschema`, `matplotlib`, `numpy`, `pandas`, `pillow`, `psygnal`, `pytest`, `qtconsole`, `qtpy`, `rich`, `scipy`, `superqt`, `tensorstore`, `tifffile`, `virtualenv`, `xarray`, `zarr` (napari#6265) Fix upgrade dependencies wokflow (napari#6211) Type _WeakCounter (napari#6246) convert Color to string (napari#6243) Partially fix translations testing (napari#6014) Allow to use all ViewerModel kwargs in Viewer constructor (napari#6209) MAINT: Replace `assert np.all(? == ?)` with `assert_array_equal` (napari#6244) Fix Python 3.11 StrEnum Compatibility (napari#6242) ...
References and relevant issues
napari/napari/utils/shortcuts.py
Line 23 in bf211d7
Reference: #5103
Description
This PR restores the
V
keybinding for toggling the visibility of the currently selected layers.It looks like this was unintentionally changed in #5103. I'm pretty sure it's unintentional because the PR description talks about changing the internal representation, not the user interaction. Also, the line above the one affected also contains
KeyCode.KeyG]
, so I think that it was copy-pasted as a template for the line below it, which was then only partially edited by mistake.