Skip to content

Commit

Permalink
Merge branch 'master' into fix/fv/keyboards-csv
Browse files Browse the repository at this point in the history
  • Loading branch information
darcywong00 authored Dec 19, 2023
2 parents 28b904c + 50d5da7 commit 7f71cf7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Keyman Version History

## 17.0.232 alpha 2023-12-18

* (#10270)

## 17.0.231 alpha 2023-12-15

* chore(web): Better match directory structure for headless engine tests (#10232)
Expand Down
2 changes: 1 addition & 1 deletion VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17.0.232
17.0.233
2 changes: 1 addition & 1 deletion common/web/types/src/kmx/string-list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OrderedStringList } from 'src/ldml-keyboard/pattern-parser.js';
import { OrderedStringList } from '../ldml-keyboard/pattern-parser.js';
import { DependencySections, StrsItem, StrsOptions } from './kmx-plus.js';

/**
Expand Down
4 changes: 2 additions & 2 deletions common/web/types/src/osk/osk.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TouchLayoutFile, TouchLayoutFlick, TouchLayoutKey, TouchLayoutPlatform, TouchLayoutSubKey } from "src/keyman-touch-layout/keyman-touch-layout-file.js";
import { TouchLayoutFile, TouchLayoutFlick, TouchLayoutKey, TouchLayoutPlatform, TouchLayoutSubKey } from "../keyman-touch-layout/keyman-touch-layout-file.js";
import { VisualKeyboard } from "../kvk/visual-keyboard.js";
import SchemaValidators from "../schema-validators.js";

Expand Down Expand Up @@ -106,4 +106,4 @@ export function remapTouchLayout(source: TouchLayoutFile, map: PuaMap) {
scanPlatform(source.tablet);

return dirty;
}
}
12 changes: 11 additions & 1 deletion web/src/engine/osk/src/input/gestures/heldRepeater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,23 @@ export class HeldRepeater implements GestureHandler {

constructor(source: GestureSequence<KeyElement, string>, closureToRepeat: () => void) {
this.source = source;
this.repeatClosure = closureToRepeat;

const baseKey = source.stageReports[0].item;
baseKey.key.highlight(true);

this.repeatClosure = () => {
closureToRepeat();
// The repeat-closure may cancel key highlighting. This restores it afterward.
baseKey.key.highlight(true);
}


this.timerHandle = window.setTimeout(this.deleteRepeater, HeldRepeater.INITIAL_DELAY);

this.source.on('complete', () => {
window.clearTimeout(this.timerHandle);
this.timerHandle = undefined;
baseKey.key.highlight(false);
});
}

Expand Down

0 comments on commit 7f71cf7

Please sign in to comment.