Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Keystroke script alows only defined characters
// Specify which character are allowed
var a = "123";
if (event.change !="") {
if (a.indexOf(event.change) == -1) {
// Customize alert message
app.alert("Das verwendete Zeichen ist nicht erlaubt!", 1);
event.rc = false;
}
}
@pixelstrolch

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment