diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 77a96cdb1..b66743322 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -82,7 +82,13 @@ QR = focusin: -> $.addClass QR.nodes.el, 'has-focus' focusout: -> + <% if (type === 'crx') { %> $.rmClass QR.nodes.el, 'has-focus' + <% } else { %> + $.queueTask -> + return if $.x 'ancestor::div[@id="qr"]', d.activeElement + $.rmClass QR.nodes.el, 'has-focus' + <% } %> hide: -> d.activeElement.blur() $.addClass QR.nodes.el, 'autohide'