ctrl-alt-h now toggles visibility of everything except the main content (probably controversially also title)

This commit is contained in:
azivner
2017-08-21 22:04:08 -04:00
parent 1aeb0eec59
commit aec8083d0c
2 changed files with 12 additions and 3 deletions

View File

@@ -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');
});