import { Cursor } from './cursor';
import keyboardJS from 'keyboardjs';
import * as rawOutline from './test-data.json';
+import {showHelp} from 'help';
let outlineData = rawOutline;
if(localStorage.getItem('activeOutline')) {
return document.querySelector('#outliner');
}
+document.getElementById('display-help').addEventListener('click', e => {
+ e.preventDefault();
+ e.stopPropagation();
+
+ showHelp();
+});
+
// move down
keyboardJS.withContext('navigation', () => {
keyboardJS.bind('j', e => {
}
});
+
+ keyboardJS.bind('shift + /', e => {
+ showHelp();
+ });
+
keyboardJS.bind('k', e => {
// move cursor up
// if shift key is held, swap the node with its previous sibling