Fix #1243.
Show a desktop notification even if the tab is visible.
Use document.hasFocus() instead.
Fix missing ()
Fix the spacing between the last shortcut and the right bracket.