Disable Enter on Wrong Answer

Blocks proceeding with the enter key when getting an answer wrong.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
panda-byte
1日のインストール数
0
累計インストール数
34
評価
0 0 0
バージョン
1.1
作成日
2022/04/18
更新日
2022/06/21
ライセンス
MIT
対象サイト

When doing a Reviews Session on KaniWani, hitting 'Enter' confirms the input, and a second keystroke will let the user continue with the next vocabulary item. However, it might be desirable to only allow proceeding by hitting 'Enter' when the item was answered correctly: if the user gets an item wrong because of a simple typo or a synonym mix-up, the user might hit 'Enter' a second time by accident and loses the chance to correct the answer.

This script prevents exactly that: it disables proceeding to the next item with 'Enter' for 1 second if the current input was wrong, and the user is forced to either click the 'Submit answer' arrow with the mouse to continue or wait for the 1-second cooldown to end.