javascript - Disable Firefox OS keyboard autohiding when touching outside the keyboard -



javascript - Disable Firefox OS keyboard autohiding when touching outside the keyboard -

when tap input field in firefox os, on screen keyboard comes up. developing messenger app , have toolbar borders on-screen keyboard "send" button.

when tap send button, keyboard automatically closes not want (the user may have come in more messages).

how prevent keyboard closing when outside touch detected? have searched on net , cannot find reply (though seems marketplace apps have behaviour).

you can seek create hidden input receives focus 1 time visible input field loses it.

class="snippet-code-js lang-js prettyprint-override">var input = document.getelementbyid("text"); var trap = document.getelementbyid("trap"); input.addeventlistener("blur", function() { trap.focus(); }, false); class="snippet-code-css lang-css prettyprint-override">#trap { position: absolute; width: 1px; left: -10px; } class="snippet-code-html lang-html prettyprint-override"><input type="text" id="text" /> <input type="text" id="trap" />

javascript html5 firefox-os virtual-keyboard

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -