mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 11:12:50 +00:00
add shortcuts
This commit is contained in:
@@ -65,6 +65,29 @@ export function PlotConfig({
|
||||
},
|
||||
{ preventDefault: true }
|
||||
);
|
||||
useHotkeys(
|
||||
"ctrl+e",
|
||||
() => {
|
||||
changeColor(true);
|
||||
},
|
||||
{ preventDefault: true }
|
||||
);
|
||||
useHotkeys(
|
||||
"ctrl+shift+s",
|
||||
async () => {
|
||||
setModal({ modal: "downloadCsv" });
|
||||
await downloadCSV(document.getElementById("plotlyChart") as any);
|
||||
},
|
||||
{ preventDefault: true }
|
||||
);
|
||||
useHotkeys(
|
||||
"ctrl+s",
|
||||
async () => {
|
||||
hideModebar();
|
||||
downloadImage("MainChart", hideModebar, Loading);
|
||||
},
|
||||
{ preventDefault: true }
|
||||
);
|
||||
useHotkeys(
|
||||
"ctrl+w",
|
||||
() => {
|
||||
|
||||
52
openbb_terminal/core/plots/plotly.html
vendored
52
openbb_terminal/core/plots/plotly.html
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user