fix(editor): Make shortcuts for toggling input/output panel work in the popped out log view (#19911)

This commit is contained in:
Suguru Inoue 2025-09-23 13:59:17 +02:00 committed by GitHub
parent 83173fb04c
commit 8049da2971
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,14 @@ const keyMap = computed<KeyMap>(() => ({
ArrowUp: selectPrev,
Space: () => selected.value && toggleExpanded(selected.value),
Enter: () => selected.value && handleOpenNdv(selected.value),
...(isPoppedOut.value
? {
// We need shortcuts for toggling input/output panel in the pop-out window only
// because these are also implemented in the canvas
i: () => logsStore.toggleInputOpen(),
o: () => logsStore.toggleOutputOpen(),
}
: {}),
}));
function handleResizeOverviewPanelEnd() {