Skip to content
Permalink
Browse files

Consistent logic

  • Loading branch information...
philwareham committed Feb 13, 2019
1 parent b8d55ca commit 8d7d6d48e577b3e3976ba96daf66b83ff5be7143
Showing with 1 addition and 1 deletion.
  1. +1 −1 textpattern/textpattern.js
@@ -1553,7 +1553,7 @@ $(document).keydown(function (e) {

if (key === 27) {
$('.close').parent().toggle();
} else if (key === 19 || ((e.metaKey || e.ctrlKey) && !(e.altKey) && String.fromCharCode(key).toLowerCase() === 's'))
} else if (key === 19 || (!e.altKey && (e.metaKey || e.ctrlKey) && String.fromCharCode(key).toLowerCase() === 's'))
{
var obj = $('input.publish');

0 comments on commit 8d7d6d4

Please sign in to comment.
You can’t perform that action at this time.