mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Merge pull request #944 from matrix-org/t3chguy/fix-focus-steal
don't focus_composer on window focus
This commit is contained in:
commit
10a9313bba
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user