/* * Appends the current character and index combo in the _currentViewCharacter to the input box */ private void AppendCurrChar() { char finalChar = T9CharacterModel.GetCharacter(_currentViewChar.charKey, _currentViewChar.currCharIndex); _currentInput.Append(finalChar); OnPropertyChanged("CurrentInput"); }
/* * Swaps out the last inputed character in the input text block with the current ViewChar */ private void SwapLastWithCurrChar() { char finalChar = T9CharacterModel.GetCharacter(_currentViewChar.charKey, _currentViewChar.currCharIndex); if (_currentInput.Length > 0) { _currentInput.Remove(_currentInput.Length - 1, 1); _currentInput.Append(finalChar); } else { _currentInput.Append(finalChar); } OnPropertyChanged("CurrentInput"); }