Merge pull request #944 from matrix-org/t3chguy/fix-focus-steal

don't focus_composer on window focus
This commit is contained in:
Matthew Hodgson 2017-05-27 23:30:00 +01:00 committed by GitHub
commit 10a9313bba

View File

@ -247,7 +247,6 @@ module.exports = React.createClass({
UDEHandler.startListening();
this.focusComposer = false;
window.addEventListener("focus", this.onFocus);
// this can technically be done anywhere but doing this here keeps all
// the routing url path logic together.
@ -910,10 +909,6 @@ module.exports = React.createClass({
});
},
onFocus: function(ev) {
dis.dispatch({action: 'focus_composer'});
},
showScreen: function(screen, params) {
if (screen == 'register') {
dis.dispatch({