1

I want to have virtual keyboard for jquery terminal, here is my test code: http://terminal.jcubic.pl/android.html the plugin code is here: http://terminal.jcubic.pl/js/jquery.terminal-src.js (uncommitted)

For a moment it was working but it stopped, even then I run focus and blur on textarea the keyboard don't show up. The cursor is not in textarea. The focus/blur work when I run the page on desktop Chromium.

Anybody know why textarea don't have focus?

Sometimes the cursor is inside but the keyboard don't show up and there is no that green outline. Sometime it get focus but then blur. Virtual keyboard show up only when I click inside textarea. I can't find any code that may cause this and why it was working for a moment (but not exactly I wanted).

I've try:

$('textarea').blur(function() { return false; });

or call preventDefault when I click the terminal. (the textarea is my clipboard but I want to reuse it). I keep trying different things with no success.

joao2fast4u
  • 6,868
  • 5
  • 28
  • 42
jcubic
  • 61,973
  • 54
  • 229
  • 402

1 Answers1

0

I've solve the issue, two things about andorid I've found. You can't delay action that trigger focus on textarea/input it need to be direct call (stack of focus call need point to html/browser native action), and it's seems that you can focus (trigger virtual keyboard) only on native events, (for instance you can't focus on load).

jcubic
  • 61,973
  • 54
  • 229
  • 402