admin管理员组文章数量:1328759
There is an excellent jQuery on-screen keyboard plugin by Mottie:
By default text from the keyboard goes into additional input and then can be accepted or cancelled. If text is accepted it goes into the source textarea/input.
But is there a way to input directly from the keyboard to the source textarea/input without the need to accept it (like with mobile keyboards on android/ios)?
There is an excellent jQuery on-screen keyboard plugin by Mottie: https://github./Mottie/Keyboard
By default text from the keyboard goes into additional input and then can be accepted or cancelled. If text is accepted it goes into the source textarea/input.
But is there a way to input directly from the keyboard to the source textarea/input without the need to accept it (like with mobile keyboards on android/ios)?
Share edited May 8, 2014 at 12:23 Mottie 86.5k30 gold badges130 silver badges248 bronze badges asked May 8, 2014 at 10:02 CubiusCubius 1,3342 gold badges16 silver badges37 bronze badges1 Answer
Reset to default 9The documentation for the plugin is contained in GitHub wiki pages.
The option needed not include a preview is called usePreview
(ref); set it to false
(demo):
To autoaccept the contents, set the autoAccept
option to true
$('#keyboard').keyboard({
layout: 'qwerty',
// true: preview added above keyboard;
// false: original input/textarea used
usePreview: false
// Auto-accept content when clicking outside the
// keyboard (popup will close)
autoAccept: true
});
本文标签: javascriptMottie39s Virtual Keyboard direct inputStack Overflow
版权声明:本文标题:javascript - Mottie's Virtual Keyboard: direct input - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742260822a2442480.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论