mirror of https://github.com/vector-im/riot-web
remove window onFocus handling entirely
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
8e1db84bee
commit
4cd7964b58
|
@ -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,12 +909,6 @@ module.exports = React.createClass({
|
|||
});
|
||||
},
|
||||
|
||||
onFocus: function(ev) {
|
||||
if (document.activeElement.textLength === undefined) {
|
||||
dis.dispatch({action: 'focus_composer'});
|
||||
}
|
||||
},
|
||||
|
||||
showScreen: function(screen, params) {
|
||||
if (screen == 'register') {
|
||||
dis.dispatch({
|
||||
|
|
Loading…
Reference in New Issue