diff options
author | Jason <jason.daurus@gmail.com> | 2016-03-02 22:37:32 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-03-02 22:37:32 +0800 |
commit | 1d002182e318be64190c4616ac4931e98feb31eb (patch) | |
tree | 5a1791ac7c854f0008dcdcec6fcdfc11737440c1 /web/src/js/components/proxyapp.js | |
parent | fab9dad940d6db15bb671a557fd51d1241e4ecbe (diff) | |
download | mitmproxy-1d002182e318be64190c4616ac4931e98feb31eb.tar.gz mitmproxy-1d002182e318be64190c4616ac4931e98feb31eb.tar.bz2 mitmproxy-1d002182e318be64190c4616ac4931e98feb31eb.zip |
[web] remove common.ChildFocus
Diffstat (limited to 'web/src/js/components/proxyapp.js')
-rw-r--r-- | web/src/js/components/proxyapp.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/src/js/components/proxyapp.js b/web/src/js/components/proxyapp.js index 24f45ff5..97acfbde 100644 --- a/web/src/js/components/proxyapp.js +++ b/web/src/js/components/proxyapp.js @@ -55,6 +55,8 @@ var ProxyAppMain = React.createClass({ }; }, focus: function () { + document.activeElement.blur(); + window.getSelection().removeAllRanges(); ReactDOM.findDOMNode(this).focus(); }, getMainComponent: function () { |