Titanium Community Questions & Answer Archive

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

Hide keyboard number pad - best way


I'm wondering what the best way to hide a number pad is. Is it to have a big button in the background or what's the "standard way"? I've tried this:

enableReturnKey: true

But then the event doesn't respond when I click on the return key. Am I missing something?

— asked June 13th 2010 by Adam Folkesson
  • best
  • hide
  • key
  • keyboard
  • number
  • pad
  • return
  • way

2 Answers

  • Kosso:

    Thanks for your answer but I solved by a different method.

    When the user clicks on the view the keyboard disappears. Like this:

    win.addEventListener("click", function()
    wrapper.addEventListener("click", function()
    — answered June 15th 2010 by Adam Folkesson
    1 Comment
    • Adam i would like to know what is purpose of wrapper "action listener" as only window listener only is sufficient ??

      — commented September 10th 2012 by vivek singh
  • try removing the returnKeyType and enableReturnKey options.

    Then your 'return' event should fire. Then when you catch that, call yourtextfield_var_name.blur()

    — answered June 13th 2010 by Kosso
    1 Comment
    • blur method is how i do it.

      — commented June 14th 2010 by Sj Singh
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.