OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Trigger the keyboard IME via javascript

  • Thread starter Thread starter Léal
  • Start date Start date
L

Léal

Guest
I am trying to build a visual/virtual (HTML/CSS/JS) keyboard and need to handle IME because of Chinese.

  • If I change the value of the input, IME is not showing
  • If I fire a KeyboardEvent keydown, IME is not showing

IME only shows when I am focused on the input and use the physical keyboard.

https://jsfiddle.net/5xw0mrs6/1/

Does somebody have a way to do it?

(I need it to work at least on chrome)

<p>I am trying to build a visual/virtual (HTML/CSS/JS) keyboard and need to handle IME because of Chinese.</p>
<ul>
<li>If I change the value of the input, IME is not showing</li>
<li>If I fire a <code>KeyboardEvent</code> keydown, IME is not showing</li>
</ul>
<p>IME only shows when I am focused on the input and use the physical keyboard.</p>
<p><a href="https://jsfiddle.net/5xw0mrs6/1/" rel="nofollow noreferrer">https://jsfiddle.net/5xw0mrs6/1/</a></p>
<p>Does somebody have a way to do it?</p>
<p>(I need it to work at least on chrome)</p>
 

Latest posts

Top