diff --git a/client/modules/IDE/components/KeyboardShortcutModal.js b/client/modules/IDE/components/KeyboardShortcutModal.js
index 48d2fd03..a0a3865b 100644
--- a/client/modules/IDE/components/KeyboardShortcutModal.js
+++ b/client/modules/IDE/components/KeyboardShortcutModal.js
@@ -16,7 +16,7 @@ class KeyboardShortcutModal extends React.Component {
-
+
-
Shift + Tab
Tidy
@@ -56,6 +56,18 @@ class KeyboardShortcutModal extends React.Component {
Stop Sketch
+ -
+
+ {this.isMac ? 'Command + Shift + 1' : 'Control + Shift + 1'}
+
+ Turn On Text-based Canvas
+
+ -
+
+ {this.isMac ? 'Command + Shift + 2' : 'Control + Shift + 2'}
+
+ Turn Off Text-based Canvas
+
);
diff --git a/client/modules/IDE/pages/IDEView.js b/client/modules/IDE/pages/IDEView.js
index a7864864..92be34c1 100644
--- a/client/modules/IDE/pages/IDEView.js
+++ b/client/modules/IDE/pages/IDEView.js
@@ -153,6 +153,12 @@ class IDEView extends React.Component {
e.preventDefault();
e.stopPropagation();
this.props.startSketchAndRefresh();
+ } else if (e.keyCode === 50 && ((e.metaKey && this.isMac) || (e.ctrlKey && !this.isMac)) && e.shiftKey) {
+ e.preventDefault();
+ this.props.setTextOutput(false);
+ } else if (e.keyCode === 49 && ((e.metaKey && this.isMac) || (e.ctrlKey && !this.isMac)) && e.shiftKey) {
+ e.preventDefault();
+ this.props.setTextOutput(true);
}
}
diff --git a/static/loadData.js b/static/loadData.js
index d1bf1764..bfeb85e7 100644
--- a/static/loadData.js
+++ b/static/loadData.js
@@ -13,6 +13,6 @@ function fetchJSONFile(path, callback) {
httpRequest.send();
}
-fetchJSONFile('data.min.json', function(data){
+fetchJSONFile('/data.min.json', function(data){
allData = data;
});