not hiding the elements for alt-m, just lowering opacity

This commit is contained in:
azivner
2018-01-02 20:52:36 -05:00
parent 550bb77ca9
commit e32289720c
3 changed files with 6 additions and 5 deletions

View File

@@ -6,10 +6,7 @@ jQuery.hotkeys.options.filterContentEditable = false;
jQuery.hotkeys.options.filterTextInputs = false;
$(document).bind('keydown', 'alt+m', e => {
const toggle = $(".hide-toggle");
const hidden = toggle.css('visibility') === 'hidden';
toggle.css('visibility', hidden ? 'visible' : 'hidden');
$(".hide-toggle").toggleClass("suppressed");
e.preventDefault();
});