...
...
...
// Forward the input to the selected object
if (mSel != null)
{
string input = Input.inputString;
//Merge the input string. Backspace always come first and the other characters
//if the backspace is found in the current string no \b will be added so in practicve lastInputEvents will be always empty
//if no backspace is found and a backspace has been reported, this will be added to lastInputEvents
//next update the string will be notified and changed
lastInputEvents += input;
// Adding support for some macs only having the "Delete" key instead of "Backspace"
if (useKeyboard && Input.GetKeyDown(KeyCode.Delete) && lastInputEvents.LastIndexOf('\b') == -1) lastInputEvents += '\b';
if(lastInputEvents.Length > 0)
{
if (!stickyTooltip && mTooltip != null) ShowTooltip(false);
Notify(mSel, "OnInput", lastInputEvents);
//Nullify all the inputs
lastInputEvents = System.String.Empty;
}
}
else {
inputHasFocus = false;
}