Skip to content

Commit 39efce4

Browse files
committed
feat: add region:visibility-all shortcut (ctrl+h)
1 parent 34d8d4a commit 39efce4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

web/libs/editor/src/core/settings/keymap.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
"key": "alt+h",
8181
"description": "Toggle selected region visibility"
8282
},
83+
"region:visibility-all": {
84+
"key": "ctrl+h",
85+
"mac": "command+h",
86+
"description": "Toggle all regions visibility"
87+
},
8388
"region:lock": {
8489
"key": "alt+l",
8590
"description": "Lock selected region"

web/libs/editor/src/stores/AppStore.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ export default types
422422
}
423423
});
424424

425+
hotkeys.addNamed("region:visibility-all", () => {
426+
const { selected } = self.annotationStore;
427+
selected.regionStore.toggleVisibility();
428+
});
429+
425430
hotkeys.addNamed("annotation:undo", () => {
426431
const annotation = self.annotationStore.selected;
427432

0 commit comments

Comments
 (0)