mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02: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…
x
Reference in New Issue
Block a user