From 101d1fe9ee37bebc0faf933f2cd169b5e0d284d7 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 4 Apr 2012 10:26:12 +0200 Subject: [PATCH] Close #366 --- 4chan_x.user.js | 3 +++ script.coffee | 3 +++ 2 files changed, 6 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index ee9dc92d7..b7b3e8e0c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1820,6 +1820,9 @@ if (Conf['Thread Watcher'] && Conf['Auto Watch Reply'] && threadID !== 'new') { Watcher.watch(threadID); } + if (!QR.cooldown.auto && $.x('ancestor::div[@id="qr"]', d.activeElement)) { + d.activeElement.blur(); + } QR.status({ progress: '...' }); diff --git a/script.coffee b/script.coffee index 49687df6d..075276046 100644 --- a/script.coffee +++ b/script.coffee @@ -1520,6 +1520,9 @@ QR = QR.hide() if Conf['Thread Watcher'] and Conf['Auto Watch Reply'] and threadID isnt 'new' Watcher.watch threadID + if not QR.cooldown.auto and $.x 'ancestor::div[@id="qr"]', d.activeElement + # Unfocus the focused element if it is one within the QR and we're not auto-posting. + d.activeElement.blur() # Starting to upload might take some time. # Provide some feedback that we're starting to submit.