Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

iOS - Detect hardware keyboard

Is there a way to detect if a hardware keyboard is being used with an iPad?

I've got a keyboardToolbar that has necessary buttons on it, but that doesn't get displayed if a hardware keyboard is in use.

I could put the buttons on a window toolbar via setToolbar() on my window, but that seems to either get blanked or blank the keyboardToolbar, depending on which order I do it in, which causes problems when, for instance, the device is rotated.

— asked February 22nd 2012 by K T
  • hardware
  • ios
  • ipad
  • keyboard
0 Comments

1 Answer

  • Accepted Answer

    I dont think that is even possible in a native app (http://stackoverflow.com/search?q=detect+hardware+keyboard+ios)

    — answered February 22nd 2012 by Nick Milner
    permalink
    1 Comment
    • Ah, thanks Nick. That seems to answer it. (Although in real iOS code at least I wouldn't have to deal with Titanium goofiness to get things to work properly.)

      — commented February 22nd 2012 by K T
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.