From 29a2892dd0ecfad0bde998cf510c8f434d6070f8 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 13 Jan 2019 11:35:04 -0800 Subject: [PATCH] feat: add hotkey help to settings (#886) --- src/routes/_components/ShortcutHelpInfo.html | 49 +++++++++++++++++++ .../dialog/components/ShortcutHelpDialog.html | 43 ++-------------- src/routes/_pages/settings/hotkeys.html | 14 ++++++ src/routes/_pages/settings/index.html | 3 +- src/routes/settings/hotkeys.html | 20 ++++++++ 5 files changed, 89 insertions(+), 40 deletions(-) create mode 100644 src/routes/_components/ShortcutHelpInfo.html create mode 100644 src/routes/_pages/settings/hotkeys.html create mode 100644 src/routes/settings/hotkeys.html diff --git a/src/routes/_components/ShortcutHelpInfo.html b/src/routes/_components/ShortcutHelpInfo.html new file mode 100644 index 0000000..062bae5 --- /dev/null +++ b/src/routes/_components/ShortcutHelpInfo.html @@ -0,0 +1,49 @@ +
+

Hotkeys

+ + +
+ + diff --git a/src/routes/_components/dialog/components/ShortcutHelpDialog.html b/src/routes/_components/dialog/components/ShortcutHelpDialog.html index 59dbc08..09c430e 100644 --- a/src/routes/_components/dialog/components/ShortcutHelpDialog.html +++ b/src/routes/_components/dialog/components/ShortcutHelpDialog.html @@ -5,49 +5,13 @@ muted="true" className="shortcut-help-modal-dialog"> -

Keyboard Shortcuts

- - + - diff --git a/src/routes/_pages/settings/index.html b/src/routes/_pages/settings/index.html index 015373b..e1f97c2 100644 --- a/src/routes/_pages/settings/index.html +++ b/src/routes/_pages/settings/index.html @@ -4,6 +4,7 @@ + @@ -20,4 +21,4 @@ SettingsListItem } } - \ No newline at end of file + diff --git a/src/routes/settings/hotkeys.html b/src/routes/settings/hotkeys.html new file mode 100644 index 0000000..e50cf73 --- /dev/null +++ b/src/routes/settings/hotkeys.html @@ -0,0 +1,20 @@ + + +<LazyPage {pageComponent} {params} /> + +<script> + import Title from '../_components/Title.html' + import LazyPage from '../_components/LazyPage.html' + import pageComponent from '../_pages/settings/hotkeys.html' + + export default { + components: { + + Title, + LazyPage + }, + data: () => ({ + pageComponent + }) + } +</script>