Logo Search packages:      
Sourcecode: fcitx-sunpinyin version File versions

void FcitxWindowHandler::commit ( const TWCHAR *  str ) [virtual]

sunpinyin called this function while commit the string

Parameters:
strcommitted string
Returns:
void

Definition at line 64 of file handler.cpp.

{
    FcitxInstance* instance = owner->owner;
    FcitxInputState* input = FcitxInstanceGetInputState(instance);
    char *buf_ = GetOutputString(input);
    memset(buf_, 0, MAX_USER_INPUT);
    WCSTOMBS(buf_, str, MAX_USER_INPUT);
    commit_flag = true;
    FcitxInputStateSetCursorPos(input, false);
}

Generated by  Doxygen 1.6.0   Back to index