mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-19 14:17:40 +00:00
Update web/src/engine/src/core-processor/coreKeyboardProcessor.ts
Co-authored-by: Marc Durdin <marc@durdin.net>
This commit is contained in:
parent
51b05c9661
commit
b0ea7e58c8
1 changed files with 3 additions and 4 deletions
|
|
@ -114,12 +114,11 @@ export class CoreKeyboardProcessor extends EventEmitter<EventMap> implements Key
|
|||
const contextItems = new KM_Core.instance.km_core_context_items();
|
||||
const caretPosition = textStore.getCaret();
|
||||
let textIndex = 0
|
||||
for (let deadkeyIndex = 0; deadkeyIndex < deadKeys.length; deadkeyIndex++) {
|
||||
const deadKey = deadKeys[deadkeyIndex];
|
||||
for (const deadkey of deadkeys) {
|
||||
for (; textIndex < text.length && textIndex <= caretPosition; textIndex++) {
|
||||
const contextItem = new KM_Core.instance.km_core_context_item();
|
||||
if (deadKey.p == textIndex) {
|
||||
contextItem.marker = deadKey.d;
|
||||
if (deadkey.p == textIndex) {
|
||||
contextItem.marker = deadkey.d;
|
||||
contextItems.push_back(contextItem);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue