# Mojo.Char

## Namespace Detail

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

## Method Summary

- Mojo.Char.isDeleteKey(key)
- Mojo.Char.isDigit(key)
- Mojo.Char.isEnterKey(key)
- Mojo.Char.isValid(key)
- Mojo.Char.isValidWrittenChar(keyCode)

## Method Detail

### {boolean} Mojo.Char.isDeleteKey(key)

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

#### Parameter

{int} key Key value to check

#### 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).

#### Parameter

{int} key Key value to check

#### 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.

#### Parameter

{int} key Key value to check

#### 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.

#### Parameter

{int} key Key value to check

#### Returns

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

### Mojo.Char.isValidWrittenChar(keyCode)

#### Parameter

keyCode