diff options
author | 2023-08-31 15:38:12 +0200 | |
---|---|---|
committer | 2023-08-31 15:52:30 +0200 | |
commit | 4ba22718cce29f784f97e8a74733e53e15a1e4e4 (patch) | |
tree | 714240e902eb2843d94035eb377e3c38ddac95f1 /subprojects/frontend/src/PaneButtons.tsx | |
parent | refactor(frontend): compact relation table (diff) | |
download | refinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.tar.gz refinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.tar.zst refinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.zip |
refactor(frontend): secondary pane switch shortcut
Diffstat (limited to 'subprojects/frontend/src/PaneButtons.tsx')
-rw-r--r-- | subprojects/frontend/src/PaneButtons.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/frontend/src/PaneButtons.tsx b/subprojects/frontend/src/PaneButtons.tsx index 9df56baa..7e884ab0 100644 --- a/subprojects/frontend/src/PaneButtons.tsx +++ b/subprojects/frontend/src/PaneButtons.tsx | |||
@@ -110,7 +110,7 @@ function PaneButtons({ | |||
110 | selected={themeStore.showGraph} | 110 | selected={themeStore.showGraph} |
111 | onClick={(event) => { | 111 | onClick={(event) => { |
112 | if (event.shiftKey || event.ctrlKey) { | 112 | if (event.shiftKey || event.ctrlKey) { |
113 | themeStore.setSelectedPane('graph'); | 113 | themeStore.setSelectedPane('graph', event.shiftKey); |
114 | } else { | 114 | } else { |
115 | themeStore.toggleGraph(); | 115 | themeStore.toggleGraph(); |
116 | } | 116 | } |
@@ -124,7 +124,7 @@ function PaneButtons({ | |||
124 | selected={themeStore.showTable} | 124 | selected={themeStore.showTable} |
125 | onClick={(event) => { | 125 | onClick={(event) => { |
126 | if (event.shiftKey || event.ctrlKey) { | 126 | if (event.shiftKey || event.ctrlKey) { |
127 | themeStore.setSelectedPane('table'); | 127 | themeStore.setSelectedPane('table', event.shiftKey); |
128 | } else { | 128 | } else { |
129 | themeStore.toggleTable(); | 129 | themeStore.toggleTable(); |
130 | } | 130 | } |