4

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!

Arpad Bajzath
  • 896
  • 8
  • 19
  • Why you want show keyboard without input? Set the keyboard visible if not used is a bad UX practice. – Mou Dec 13 '14 at 11:46
  • Anyway, you can see this answer: http://stackoverflow.com/questions/6837543/show-virtual-keyboard-on-mobile-phones-in-javascript – Mou Dec 13 '14 at 11:47
  • Because i'm building a game, which is using keyboard (keycodes) without inputs – Arpad Bajzath Dec 13 '14 at 11:48

2 Answers2

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

Community
  • 1
  • 1
carlos_apa
  • 44
  • 2
1

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

Mou
  • 2,027
  • 1
  • 18
  • 29