Hi mvg,
you need to avoid that the text editor is sending the characters to the pinyin engine. This can be done at PinyinInput::TextEditor.onCharacterKey.
For example to exclude numbers from 0 to 9 you can write the following:
var char ch = CharacterKeyHandler.CharCode;
var string str = ch;
// Forward the character input to the pinyin input when its enabled but
// exclude numbers
if ( PinyinEnabled && (((int32)ch < (int32)'0') || ((int32)ch > (int32)'9')) )
{
TriggerPinyinEvent( ch, Core::KeyCode.CharacterKeys );
}
else
...
Best regards,
Julian