Mottie / Keyboard

Virtual Keyboard using jQuery ~
http://mottie.github.io/Keyboard/
Other
1.78k stars 723 forks source link

Input locked when keyboard is closed #495

Closed mysiki closed 7 years ago

mysiki commented 8 years ago

Hello,

First, thanks for this great job. :D

I have a issue (?), with my setup, when I close the keyboard the input (from hardware keyboard) don't work... It's seems to be link with the Preview (false).

I use a button for open the visual keyboard.

When I load the page, I can write with the physical keyboard. After I open the visual keyboard, all keep ok (hard and visual keyboard). Then I close the visual keyboard and I cannot write anything more... I can write again only when the visual keyboard is open ...

I have try with the lockinput:false option, but no change.

Nota : Just testing, when I enable the preview I have no issue ...

If you can help me please :D

My code :

$("#cab").keyboard({ layout : "custom", customLayout: { "normal" : ["1 2 3", "4 5 6", "7 8 9", "0 {b} {a}"], }, position : { // null (attach to input/textarea) or a jQuery object (attach elsewhere) of : $("#tablehaut"), my : "right bottom", at : "right top", // at2 is used when "usePreview" is false (centers keyboard at the bottom // of the input/textarea) at2 : "right top" }, //caretToEnd : true, usePreview : false, autoAccept : true, openOn : null, });

//Keyboard button $("#keyboardimg").click(function() {
var kb = $("#cab").getkeyboard(); kb.reveal(); });

mysiki commented 8 years ago

Good, your change work with my setup. Thanks.

emondora commented 7 years ago

same issue, usePreview : false trigger the bug!