diff --git a/src/templates/app.html b/src/templates/app.html index 46d026f19..f871dae36 100644 --- a/src/templates/app.html +++ b/src/templates/app.html @@ -12,7 +12,7 @@
-
+
@@ -20,13 +20,13 @@
-
+
-
+
diff --git a/static/js/init.js b/static/js/init.js index 03abb1c71..c1ec81af5 100644 --- a/static/js/init.js +++ b/static/js/init.js @@ -4,4 +4,13 @@ $(function() { $('div.note-editable').height($(window).height() - $('div.note-editable').offset().top); }); $(window).resize(); +}); + +jQuery.hotkeys.options.filterInputAcceptingElements = true; +jQuery.hotkeys.options.filterContentEditable = true; + +$(document).bind('keypress', 'alt+ctrl+h', function() { + const toggle = $(".hide-toggle"); + + toggle.css('visibility', toggle.css('visibility') === 'hidden' ? 'visible' : 'hidden'); }); \ No newline at end of file