diff --git a/client/modules/IDE/components/KeyboardShortcutModal.jsx b/client/modules/IDE/components/KeyboardShortcutModal.jsx
index 420a99c6..691bab70 100644
--- a/client/modules/IDE/components/KeyboardShortcutModal.jsx
+++ b/client/modules/IDE/components/KeyboardShortcutModal.jsx
@@ -3,90 +3,87 @@ import { metaKeyName, } from '../../../utils/metaKey';
function KeyboardShortcutModal() {
return (
-
- -
- {'\u21E7'} + Tab
- Tidy
-
- -
-
- {metaKeyName} + S
-
- Save
-
- -
-
- {metaKeyName} + F
-
- Find Text
-
- -
-
- {metaKeyName} + G
-
- Find Next Text Match
-
- -
-
- {metaKeyName} + {'\u21E7'} + G
-
- Find Previous Text Match
-
- -
-
- {metaKeyName} + [
-
- Indent Code Left
-
- -
-
- {metaKeyName} + ]
-
- Indent Code Right
-
- -
-
- {metaKeyName} + /
-
- Comment Line
-
- -
-
- {metaKeyName} + Enter
-
- Start Sketch
-
- -
-
- {metaKeyName} + {'\u21E7'} + Enter
-
- Stop Sketch
-
- -
-
- {metaKeyName} + {'\u21E7'} + 1
-
- Turn on Accessible Output
-
- -
-
- {metaKeyName} + {'\u21E7'} + 2
-
- Turn off Accessible Output
-
- -
-
- {metaKeyName} + B
-
- Toggle Sidebar
-
- -
-
- Ctrl + `
-
- Toggle Console
-
-
+
+
Code Editing
+
+ Code editing keyboard shortcuts follow Sublime Text shortcuts.
+
+
+ -
+ {'\u21E7'} + Tab
+ Tidy
+
+ -
+
+ {metaKeyName} + F
+
+ Find Text
+
+ -
+
+ {metaKeyName} + G
+
+ Find Next Text Match
+
+ -
+
+ {metaKeyName} + {'\u21E7'} + G
+
+ Find Previous Text Match
+
+ -
+
+ {metaKeyName} + [
+
+ Indent Code Left
+
+ -
+
+ {metaKeyName} + ]
+
+ Indent Code Right
+
+ -
+
+ {metaKeyName} + /
+
+ Comment Line
+
+
+
General
+
+ -
+
+ {metaKeyName} + S
+
+ Save
+
+ -
+
+ {metaKeyName} + Enter
+
+ Start Sketch
+
+ -
+
+ {metaKeyName} + {'\u21E7'} + Enter
+
+ Stop Sketch
+
+ -
+
+ {metaKeyName} + {'\u21E7'} + 1
+
+ Turn on Accessible Output
+
+ -
+
+ {metaKeyName} + {'\u21E7'} + 2
+
+ Turn off Accessible Output
+
+
+
);
}
diff --git a/client/styles/base/_base.scss b/client/styles/base/_base.scss
index 58b1030b..d824c646 100644
--- a/client/styles/base/_base.scss
+++ b/client/styles/base/_base.scss
@@ -74,6 +74,7 @@ h2 {
h3 {
font-weight: normal;
+ font-size: #{16 / $base-font-size}rem;
}
h4 {
font-weight: normal;
diff --git a/client/styles/components/_keyboard-shortcuts.scss b/client/styles/components/_keyboard-shortcuts.scss
index 66963e91..ca6f81fd 100644
--- a/client/styles/components/_keyboard-shortcuts.scss
+++ b/client/styles/components/_keyboard-shortcuts.scss
@@ -4,6 +4,11 @@
width: #{450 / $base-font-size}rem;
}
+.keyboard-shortcuts-note {
+ text-align: center;
+ margin-bottom: 24px;
+}
+
.keyboard-shortcut-item {
display: flex;
& + & {
@@ -13,8 +18,31 @@
}
.keyboard-shortcut__command {
- width: 50%;
font-weight: bold;
text-align: right;
- padding-right: #{10 / $base-font-size}rem;
+ margin-right: #{10 / $base-font-size}rem;
+ padding: #{3 / $base-font-size}rem;
+ @include themify {
+ border: 1px solid getThemifyVariable("button-border-color");
+ border-radius: 3px;
+ }
+}
+
+.keyboard-shortcuts__title {
+ padding-bottom: #{10 / $base-font-size}rem;
+}
+
+.keyboard-shortcuts__description {
+ padding-bottom: #{10 / $base-font-size}rem;
+}
+
+.keyboard-shortcuts__list:not(:last-of-type) {
+ padding-bottom: #{10 / $base-font-size}rem;
+}
+
+.keyboard-shortcuts__title:not(:first-of-type) {
+ @include themify() {
+ border-top: 1px dashed getThemifyVariable("button-border-color");
+ padding-top: #{10 / $base-font-size}rem;
+ }
}