maybe window focus should be ignored so focus is left as what it was

but with this at least clicking on a text input will not make you
be thrown into composer instead

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-05-27 14:19:34 +01:00
parent 46bb29a3af
commit 2bcb381aa7

View file

@ -906,7 +906,9 @@ module.exports = React.createClass({
}, },
onFocus: function(ev) { onFocus: function(ev) {
dis.dispatch({action: 'focus_composer'}); if (document.activeElement.textLength === undefined) {
dis.dispatch({action: 'focus_composer'});
}
}, },
showScreen: function(screen, params) { showScreen: function(screen, params) {