if (Character::IsAlphaNumeric(commitChar))
{
- __pListener->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ if (__pListener)
+ {
+ __pListener->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ }
+ if (__pListenerF)
+ {
+ __pListenerF->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ }
}
if (commitText == L" " || commitText == L"\t")
{
- __pListener->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ if (__pListener)
+ {
+ __pListener->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ }
+ if (__pListenerF)
+ {
+ __pListenerF->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ }
}
if (commitText == L"\n" || commitText == L"\r")
{
- __pListener->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ if (__pListener)
+ {
+ __pListener->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ }
+ if (__pListenerF)
+ {
+ __pListenerF->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ }
}
if ( (commitChar >= 0x21 && commitChar <= 0x2F) || (commitChar >= 0x3A && commitChar <= 0x40) ||
(commitChar >= 0x5B && commitChar <= 0x60) || (commitChar >= 0x7B && commitChar<= 0x7E) )
{
- __pListener->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ if (__pListener)
+ {
+ __pListener->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ }
+ if (__pListenerF)
+ {
+ __pListenerF->OnInputConnectionTextCommitted( *pInputConnection, commitText);
+ }
}
free(pKeyDown);