logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Description

       Filter an input key. 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.

       To make the input method commit the current preedit text (if any) and shift to the initial state, call
       this function with Mnil as key.

       To inform the input method about the focus-out event, call this function with Minput_focus_out as key.

       To inform the input method about the focus-in event, call this function with Minput_focus_in as key.

       To inform the input method about the focus-move event (i.e. input spot change within the same input
       context), call this function with Minput_focus_move as key.

Name

       minput_filter -

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.

Synopsis

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

See Also