The button to erase the previous character
The button to clear the input field
The button to close the keypad
The button to add a carriage return
Blank space equivalent to half a key
The button to toggle between upper/lower case characters
Blank space equivalent to one key
An extended space character
The button to add a tab character
The standard numeric button layout. This is the default value for the layout
setting.
The alphabetic character layout for the standard Qwerty keyboard. This is the default value for the
alphabeticLayout
setting.
The full keyboard layout for the standard Qwerty keyboard. This is the default value for the fullLayout
setting.
The set of regional settings for the keypad fields. Entries are indexed by the country or region code with the empty string providing the default (English) settings. Each entry is an object with the localized messages. Language packages load new entries into this array and automatically apply them as global defaults.
<script type="text/javascript" src="jquery.keypad-fr.js"></script>
If necessary, you can then revert to the default language settings with
$.keypad.setDefaults($.keypad.regionalOptions[""]);
and apply the language settings to individual fields with
$("#frenchKeypad").keypad($.keypad.regionalOptions["fr"]);
Define a new action key for use on the keypad. Up to 32 keys may be defined, including the built-in ones.
$.keypad.addKeyDef("UPPER", "upper", function(inst) {
this.val(this.val().toUpperCase()).focus();
});
$("#keypad").keypad({
upperText: "U/C",
upperStatus: "Convert to upper case",
layout: [
"abc" + $.keypad.CLOSE,
"def" + $.keypad.CLEAR,
"ghi" + $.keypad.BACK,
"jkl" + $.keypad.UPPER
]
});
Name of the variable to use to include this key in a layout.
Name used for a CSS styling class for the key (keypad-<name>
) and for finding its display text
(using <name>Text
and <name>Status
).
Code to be run when the key is pressed. it receives the keypad instance as a parameter, while this refers to the attached input field,
true
to suppress the highlight class when using ThemeRoller
styling.
Insert text into an input field at its current cursor position. This replaces text if a selection has been made.
An input element into which to insert the given value. May be either an element or a CSS selector.
The text to insert.
Default test for English alphabetic characters - accepting "A" to "Z" and "a" to "z". See also the
isAlphabetic
setting.
A character to check.
true
if the given character is contained in the set of alphabetic characters, or false
otherwise.
Default test for English numeric characters - accepting '0' to '9'. See also the isNumeric
setting.
A character to check.
true
if the given character is contained in the set of numerical characters, or false
otherwise.
Update the default instance settings to use with all keypad instances.
The new default settings to apply.
Convert a character into its upper case form - using the standard JavaScript toUpperCase
function. See also
the toUpper
setting.
A character to convert to upper case.
The given character, converted to upper case, or the given character itself, if it cannot be converted.
Generated using TypeDoc
Keypad related constants and utility method available on the
$.keypad
object.