Chromebook: fix unable to re-gain textarea focus

This is a regression started after:
b5bd8e1e0ef0d6f8b7c32b106e7eb611977a291d
!isChromebook() control added here accidentally

Change-Id: I0d774fdeadb30960413aa1b975145ed78ec7b20d
Signed-off-by: mert <mert.tumer@collabora.com>
This commit is contained in:
mert 2020-11-12 13:09:51 +03:00 committed by Mert Tümer
parent fb8f867625
commit b949c8bc14

View file

@ -280,7 +280,7 @@ L.TextInput = L.Layer.extend({
this._textArea.setAttribute('readonly', true);
}
if (!window.ThisIsTheiOSApp && navigator.platform !== 'iPhone' && !window.mode.isChromebook()) {
if (!window.ThisIsTheiOSApp && navigator.platform !== 'iPhone') {
this._textArea.focus();
} else if (acceptInput === true) {
// On the iPhone, only call the textarea's focus() when we get an explicit