Skip to content

关于博主手机不好,经常点一次却触发两次onKey事件,就设置了一个防止多点击,间隔100毫秒。 #6

@mosentest

Description

@mosentest
@Override
    public boolean onKey(View v, int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_DEL
                && event.getAction() == KeyEvent.ACTION_DOWN) {
            backFocus();
        }
        return false;
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fix已解决

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mosentest@jiaoyaning

        Issue actions

          关于博主手机不好,经常点一次却触发两次`onKey`事件,就设置了一个防止多点击,间隔100毫秒。 · Issue #6 · jiaoyaning/VerificationCodeView