Questions tagged [numeric-keypad]

63 questions
90
votes
13 answers

keyCode values for numeric keypad?

Do the numbers on a numeric keypad have a different keycode than the numbers at the top of a keyboard? Here is some JavaScript that is supposed to run on the keyup event, but only if the keycode is between 48 and 57. Here is the…
DanielAttard
  • 3,467
  • 9
  • 55
  • 104
26
votes
6 answers

How do I use InputType=numberDecimal with the "phone" soft keypad?

For an EditText box, the user should only be entering valid numbers, so I am using android:inputType="numberDecimal". Unfortunately, the soft keyboard that Android brings up has numbers only along the top row, while the next three rows have various…
Adam Dunn
  • 1,079
  • 2
  • 14
  • 27
21
votes
9 answers

How to open number dialer pad programmatically in android?

I want to display Number Dial Keypad (Phone Call) Programmatically on button click in android. Code is available for direct number dialing but I only need to show the dial keypad when I click the Button.
Addon_Android
  • 271
  • 1
  • 2
  • 9
14
votes
5 answers

Best settings for HTML , for mobile devices

I've been reading many other questions, like these[1][2][3] for example, but the problem still persists. I need to find the "cleanest" way to have a HTML input for mobile devices and which respects all these three rules: suitable mainly for…
13
votes
10 answers

how can I dismiss keyboard when I will just touch anywhere except UITextField?

Hello I have two UITextFields in my application, and want to dismiss the keyboard when I just touch anywhere except the UITextFields how can I do this?
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
13
votes
5 answers

Does android have a numeric keypad?

Is there a way in android to invoke a numeric only keypad, i.e. a virtual keypad that contains only the numbers 0 to 9 and a "." sign?
Tawani
  • 11,067
  • 20
  • 82
  • 106
12
votes
2 answers

Number keyboard in iPad?

Is it possible to display keyboard consisting of only numbers from 0-9 in iPad?, i don't want the keyboard to display anything else. I know there is this KeyboardType:Number Pad that we can in the .xib file, but it displays all other extra…
Sashi
  • 533
  • 3
  • 6
  • 21
8
votes
1 answer

Input type='number' new validation removes leading zeros and formats number in Safari for iPhone iOS5 and latest Safari for Mac

The latest Safari for MacOS and the one that comes in iOS5 has some extra validation that causes problems if the text field is not a phone number. Case: Input text field with type="numeric" attribute. Problems: 1) Number gets formatted as a phone…
tif
  • 1,109
  • 2
  • 12
  • 32
7
votes
2 answers

Android webView: Is possible to set numbers keyboard first by default when using input type=text

We have an app that is using webview to present some HTML pages. This HTML page has input type and we were using input-type = number as we only accept numbers with decimal in this field. So the numeric android keypad appeared with the decimal…
isra60
  • 512
  • 1
  • 6
  • 18
7
votes
1 answer

Is there an acceptable cross-platform method for displaying a numeric keypad in standard web forms on a touch-based device?

The goal: To find a cross-platform solution for displaying numeric keyboards on mobile touch-based devices, with a minimum of hacks. The problem: I have a regular web application using data input forms, containing primarily numeric data. When a…
jatrim
  • 697
  • 6
  • 10
6
votes
1 answer

How to Open Android Soft Keyboard (Numeric) Programmatically ?

I know how to open a soft keyboard and even handle its key events. I need to open Numeric keyboard. P.S I am not using Edittexts in layout file. Here is the code I am using to open keyboard programmatically if (PasscodeLockUpdated.this !=…
5
votes
4 answers

input type="number" not working for Ionic app in iOS devices

In the Ionic 3 app, for numeric fields, the numeric keypad is not appearing in iOS devices. For input type number, the numbers are displaying in the first row of a keypad along with the alphabets. In Android, it's working fine. I tried with angular…
4
votes
1 answer

Android - Listen for key presses on Numeric keypad?

I use the following code to listen for the key presses of 0 - 9 from the soft input keyboard on Android: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_0) { …
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
4
votes
2 answers

Android Display Numeric Keypad on Button Click

In my application, I am trying to display the numeric keypad when the user clicks on a button. When the button is clicked, I shift the focus to the EditText in my layout using requestFocus() and next I need to display the numeric keypad so that the…
Swayam
  • 16,294
  • 14
  • 64
  • 102
3
votes
2 answers

Is there a way to show a number pad (preferably with a bubble) in a TextInput field using Kivy and Python? NEW ISSUE WITH CODE

I have an app where you input numbers (a lot) and it gets hard that the keyboard is also letters, I would like it to be just numbers (0-9), and a dot. Is there any way to do this using Kivy's .kv file and Python? I have tried input_type: 'number' in…
LucioRandy
  • 220
  • 1
  • 19
1
2 3 4 5