Skip to content

Commit 6c48fca

Browse files
committed
fix(doc): update landing page with shortcuts
1 parent 38d0492 commit 6c48fca

File tree

1 file changed

+27
-0
lines changed
  • src/e3sm_quickview/components

1 file changed

+27
-0
lines changed

src/e3sm_quickview/components/doc.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def __init__(self):
2626
title="File loading",
2727
description="Load files to explore. Those could be simulation and connectivity files or even a state file pointing to those files.",
2828
)
29+
with self, v3.Template(v_slot_append=True):
30+
v3.VHotkey(keys="f", variant="contained", inline=True)
2931

3032

3133
class ToolFieldSelection(Tool):
@@ -59,6 +61,9 @@ def __init__(self):
5961
title="State import/export",
6062
description="Export the application state into a small text file. The same file can then be imported to restore that application state.",
6163
)
64+
with self, v3.Template(v_slot_append=True):
65+
v3.VHotkey(keys="d", variant="contained", inline=True)
66+
v3.VHotkey(keys="u", variant="contained", inline=True)
6267

6368

6469
class ToolMapProjection(Tool):
@@ -210,6 +215,11 @@ def __init__(self):
210215

211216
with v3.VRow():
212217
with v3.VCol(cols=6):
218+
with v3.VRow(classes="ma-0 pb-4"):
219+
v3.VLabel("Toggle help")
220+
v3.VSpacer()
221+
v3.VHotkey(keys="h", variant="contained", inline=True)
222+
213223
with v3.VRow(classes="ma-0 pb-4"):
214224
v3.VLabel("Reset Camera")
215225
v3.VSpacer()
@@ -222,6 +232,23 @@ def __init__(self):
222232

223233
v3.VDivider(classes="mb-4")
224234

235+
with v3.VRow(classes="ma-0 pb-4"):
236+
v3.VLabel("File Open")
237+
v3.VSpacer(classes="mt-2")
238+
v3.VHotkey(keys="f", variant="contained", inline=True)
239+
240+
with v3.VRow(classes="ma-0 pb-4"):
241+
v3.VLabel("Download state")
242+
v3.VSpacer(classes="mt-2")
243+
v3.VHotkey(keys="d", variant="contained", inline=True)
244+
245+
with v3.VRow(classes="ma-0 pb-4"):
246+
v3.VLabel("Upload state")
247+
v3.VSpacer(classes="mt-2")
248+
v3.VHotkey(keys="u", variant="contained", inline=True)
249+
250+
v3.VDivider(classes="mb-4")
251+
225252
with v3.VRow(classes="ma-0 pb-4"):
226253
v3.VLabel("Toggle Layout management toolbar")
227254
v3.VSpacer(classes="mt-2")

0 commit comments

Comments
 (0)