Mojo.Char

Namespace Detail

Holds character code value (Refer to the actual source for values) and some useful key code checking methods.

Method Summary


Method Detail

{boolean} Mojo.Char.isDeleteKey(key)

This function returns true if key is the "delete" key.

Parameters

Returns

{boolean} true if key is the "delete" key; false otherwise


{boolean} Mojo.Char.isDigit(key)

This function returns true if key is one of the keys for a digit (0-9).

Parameters

Returns

{boolean} true if key is a "digit" key; false otherwise


{boolean} Mojo.Char.isEnterKey(key)

This function returns true if key is the enter key.

Parameters

Returns

{boolean} true if key is the enter key; false otherwise


{boolean} Mojo.Char.isValid(key)

This function returns true if key is a valid key within a text field.

Parameters

Returns

{boolean} true if key is a valid key within a text field; false otherwise


Mojo.Char.isValidWrittenChar(keyCode)

Parameters