Skip to content

Commit

Permalink
update:听写模式(输入模式)切换显示提醒
Browse files Browse the repository at this point in the history
  • Loading branch information
Benature committed Aug 13, 2020
1 parent 57113ce commit efd524c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions WordReview/static/js/review.js
Original file line number Diff line number Diff line change
Expand Up @@ -1251,13 +1251,16 @@ hotkeys("C, N, S, P, I, T, V, M, R", function (event, handler) {
break;
case "I":
if (!mode.input) {
console.log("input mode: on");
layer.msg("听写模式:开");
// console.log("input mode: on");
mode.input = true;
$("#tmpl-word")[0].contentEditable = true;
$("#tmpl-content").removeClass("hide").removeClass("d-none");
} else {
console.log("input mode: off");
layer.msg("听写模式:关");
// console.log("input mode: off");
mode.input = false;
$("#tmpl-word")[0].contentEditable = false;
$("#tmpl-content").addClass("hide");
}
break;
Expand Down

0 comments on commit efd524c

Please sign in to comment.