Options

inputPattern

Limits simple-keyboard’s input to a certain regular expression. This means that if a key doesn’t match the regex, it will be ignored.

// Applies to all internal inputs inputPattern: /^\d+$/ // Use an expression for a specific input, in case you are using the "inputName" option inputPattern: { 'default': /^\d+$/, 'myFancyInput': /^[a-zA-Z]+$/ }