Skip to content

Commit

Permalink
re-eval when changing byword to byletter
Browse files Browse the repository at this point in the history
because in imla, if you have a wrong, unfinished word, it's not "wrong"
yet if you have "byword", but changing it to "byletter" should mark it
as "wrong". it wasn't. this commit fixes that.
  • Loading branch information
noureddin committed Nov 11, 2023
1 parent 0ef56cc commit b90d198
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .a.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ window.imlafilter = imlafilter_byletter // the default

function change_feedbackrate () {
window.imlafilter = el_feedbackrate.value === "word" ? imlafilter_byword : imlafilter_byletter
if (el_imla_txt.value) { el_imla_txt.oninput() }
zz_set('feedbackrate', el_feedbackrate.value)
}

Expand Down
1 change: 1 addition & 0 deletions a.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ window.imlafilter = imlafilter_byletter // the default

function change_feedbackrate () {
window.imlafilter = el_feedbackrate.value === "word" ? imlafilter_byword : imlafilter_byletter
if (el_imla_txt.value && el_imla_txt.oninput) { el_imla_txt.oninput() }
zz_set('feedbackrate', el_feedbackrate.value)
}

Expand Down
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts.min.js

Large diffs are not rendered by default.

0 comments on commit b90d198

Please sign in to comment.