Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 防止中文输入法输入英文时触发提交 #6

Merged
merged 1 commit into from
Feb 12, 2023

Commits on Feb 11, 2023

  1. fix: 防止中文输入法输入英文时触发提交

    部分输入法支持中英文混输,输入过程中按空格选择中文,按回车把当前的英文直接上屏。
    
    至少在Chrome浏览器中,会把输入法选英文词的回车作为keyup事件,导致未输入完成的句子被提交。改成监听keypress事件就没问题了。
    其他浏览器未测试。
    jjm2473 committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    63af4a8 View commit details
    Browse the repository at this point in the history