summaryrefslogtreecommitdiffstats
path: root/frontend-components/plotly/src/components/PlotlyConfig.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-components/plotly/src/components/PlotlyConfig.tsx')
-rw-r--r--frontend-components/plotly/src/components/PlotlyConfig.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend-components/plotly/src/components/PlotlyConfig.tsx b/frontend-components/plotly/src/components/PlotlyConfig.tsx
index d18fcab9f52..822987812ae 100644
--- a/frontend-components/plotly/src/components/PlotlyConfig.tsx
+++ b/frontend-components/plotly/src/components/PlotlyConfig.tsx
@@ -13,7 +13,7 @@ export function hideModebar(hide: boolean = true) {
}
let includes_text = "display: none";
if (window.MODEBAR) {
- if (window.MODEBAR.style.cssText.includes("display: none") && !hide) {
+ if (window.MODEBAR.style.cssText.includes("display: none") || !hide) {
includes_text = "display: flex";
window.MODEBAR.style.cssText = `${window.MODEBAR.style.cssText}; display:flex;`;
} else {
@@ -61,7 +61,7 @@ export function PlotConfig({
{ preventDefault: true }
);
useHotkeys(
- "ctrl+shift+h",
+ ["ctrl+shift+h", "ctrl+h"],
() => {
hideModebar();
},