man minput_filter () - Filter an input key.

NAME

Inpu - Filter an input key.

SYNOPSIS

int minput_filter (MInputContext * ic, MSymbol key, void * arg)

DESCRIPTION

The minput_filter() function filters input key key according to input context ic, and calls callback functions corresponding to Minput_preedit_draw, Minput_status_draw, and Minput_candidates_draw if the preedit text, the status, and the current candidate are changed respectively.

RETURN VALUE

If key is filtered out, this function returns 1. In that case, the caller should discard the key. Otherwise, it returns 0, and the caller should handle the key, for instance, by calling the function minput_lookup() with the same key.