最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Show mobile keyboard without input element - Stack Overflow

programmeradmin7浏览0评论

I wanted to show the mobile keyboard in my responsive site. First at i tried to place a hidden input, with placeholder "tap here", but on this input i have an event, which when fires reloads the dom, and bucause of this a cannot able to show the keyboard.

The question is, there is a way to show the keyboard without an input? I'm using HTML5 doctype, and jQuery 2.

Thanks for the answers!

I wanted to show the mobile keyboard in my responsive site. First at i tried to place a hidden input, with placeholder "tap here", but on this input i have an event, which when fires reloads the dom, and bucause of this a cannot able to show the keyboard.

The question is, there is a way to show the keyboard without an input? I'm using HTML5 doctype, and jQuery 2.

Thanks for the answers!

Share Improve this question asked Dec 13, 2014 at 11:43 Arpad BajzathArpad Bajzath 8968 silver badges19 bronze badges 3
  • Why you want show keyboard without input? Set the keyboard visible if not used is a bad UX practice. – Mou Commented Dec 13, 2014 at 11:46
  • Anyway, you can see this answer: stackoverflow./questions/6837543/… – Mou Commented Dec 13, 2014 at 11:47
  • Because i'm building a game, which is using keyboard (keycodes) without inputs – Arpad Bajzath Commented Dec 13, 2014 at 11:48
Add a ment  | 

2 Answers 2

Reset to default 3

I'm afraid you can't open the keyboard without using a input. For more information you can read the following thread: Show virtual keyboard on mobile phones in javascript

If it is for a game, the best manner is create a propper layout with the buttons you want to use.

发布评论

评论列表(0)

  1. 暂无评论