Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

255
Views
El teclado virtual no aparece cuando se enfoca el área de texto con JavaScript a menos que se haya hecho un toque físico primero (Huawei Android Google Chrome)

cuando configuro el foco en un área de texto con textarea.focus(); no abrirá el teclado virtual, a menos que ejecute un toque físico en la página antes.

A) Abro la página en mi SmartPhone. La página simplemente contiene este código:

 <textarea id="textarea" rows="5" cols="20"> test </textarea>

Luego ejecuto el siguiente código:

 textarea.focus();

-> El área de texto tiene el foco ahora, aparece el cursor dentro del área de texto, pero el teclado virtual no se abre.

B) Abro la misma página en mi SmartPhone.

Esta vez toco la página en una posición aleatoria (simplemente no dentro del área de texto. El área de texto en este punto no tiene foco).

Luego también ejecuto el mismo código:

 textarea.focus();

-> El área de texto tiene el foco ahora, aparece el cursor dentro del área de texto, PERO esta vez aparece el teclado virtual.

Un toque sintético, creado así, tampoco funciona:

 // Create a synthetic click MouseEvent let evt = new MouseEvent("click", { bubbles: true, cancelable: true, view: window });

¿Alguien puede ayudarme?

Un saludo Robin

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!