omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    ui.keyboard_type

    Pythonista
    4
    5
    4123
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ihf
      ihf last edited by

      I am trying to get the keyboard for a textfield to be the purely numeric pad. I have tried setting the keyboard type to ui.KEYBOARD_NUMBER_PAD but that shifts to the full numeric. None of the othe ui.keyboard constants seem to produce the number pad either. Is there a way do this?

      Phuket2 1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        are you on ipad, or iphone? iirc, ipad does not support the numeric keypad.

        1 Reply Last reply Reply Quote 1
        • ihf
          ihf last edited by

          Thanks. I was trying to do this on the iPad and you are correct, the iPad doesn't support the alternative keyboards. Perhaps this will be achievable with IOS 11 or with Pythonista support for custom keyboards.

          1 Reply Last reply Reply Quote 0
          • dgelessus
            dgelessus last edited by

            The alternative keyboards are supported on iPad, but the number pad is the same as regular numeric keyboard. A phone-style number pad wouldn't work well on an iPad.

            1 Reply Last reply Reply Quote 0
            • Phuket2
              Phuket2 @ihf last edited by Phuket2

              @ihf , i guess you have considered this but just wanted To mention it. You could build a popover view with a keypad style appearance and position it not to obscure the field or the view could have a field to collect the info and pass it back the results to your field on your main form. Could be activated using a ui.TextField delegate method 'textfield_should_begin_editing'.

              edit
              The calculator example that comes with Pythonista could be an easy starting point

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors