mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-22 01:29:39 +08:00
Fix layoutCandidates case insensitive selection per https://github.com/simple-keyboard/simple-keyboard-layouts/issues/1361
This commit is contained in:
parent
00fbc6c105
commit
0d81cabb34
@ -368,7 +368,7 @@ class SimpleKeyboard {
|
||||
currentInput.substring(0, initialCaretPosition || 0) ||
|
||||
currentInput;
|
||||
|
||||
const regexp = new RegExp(`${candidateKey}$`, "g");
|
||||
const regexp = new RegExp(`${candidateKey}$`, "gi");
|
||||
const newInputSubstr = inputSubstr.replace(regexp, selectedCandidate);
|
||||
const newInput = currentInput.replace(inputSubstr, newInputSubstr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user