package com.kfzs.android.view.widget;

import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;

/**
 * job of EditText action
 * <pre>
 *     sinlov
 *
 *     /\__/\
 *    /`    '\
 *  ≈≈≈ 0  0 ≈≈≈ Hello world!
 *    \  --  /
 *   /        \
 *  /          \
 * |            |
 *  \  ||  ||  /
 *   \_oo__oo_/≡≡≡≡≡≡≡≡o
 *
 * </pre>
 * Created by sinlov on 17/4/18.
 */
public interface IEditTextActionJob {
    /**
     * * now action of IME action more info see {@link EditorInfo#IME_ACTION_GO} or other
     *
     * @param keyCode keyCode
     * @param event   KeyEvent
     * @return {@link android.view.View#setOnKeyListener(View.OnKeyListener)} return
     */
    boolean onIMEAction(int keyCode, KeyEvent event);
}
