Cordova plugin to show decimal or dash key on the iOS keyboard.
Taken from mrchandoo's repo cordova-plugin-decimal-keyboard and merged with ericdesa WKWebView fix into cordova-plugin-decimal-keyboard and further modified before being checked into this repo.
cordova plugin add --save https://github.com/hvaughan3/cordova-plugin-character-keyboard-wkwebview
<input type="text" pattern="[0-9]*" decimal="true">
Input type number will not work, try to use text with [0-9] pattern instead.
<input type="text" pattern="[0-9]*" decimal="true" allow-multiple-decimals="true">
<input type="text" pattern="[0-9]*" decimal="true" allow-multiple-decimals="false" decimal-char=",">
If you want to localize decimal character, you can change using decimal-char attribute
<input type="text" pattern="[0-9]*" dash="true">
Input type number will not work, try to use text with [0-9] pattern instead.
<input type="text" pattern="[0-9]*" dash="true" allow-multiple-dashes="true">
<input type="text" pattern="[0-9]*" dash="true" allow-multiple-dashes="false" dash-char=",">
If you want to localize dash character, you can change using dash-char attribute
- Does not handle screen rotation.
This project is licensed under the MIT License - see the LICENSE file for details