Skip to content

Commit

Permalink
fix(web): default multitap fix + sets one layout field private
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed Apr 23, 2024
1 parent b9cfaa1 commit bef2665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions common/web/keyboard-processor/src/keyboards/activeLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ export class ActiveLayout implements LayoutFormFactor{
/**
* Facilitates mapping layer id strings to their specification objects.
*/
layerMap: {[layerId: string]: ActiveLayer};
private layerMap: {[layerId: string]: ActiveLayer};

private constructor() {

Expand Down Expand Up @@ -887,8 +887,8 @@ export class ActiveLayout implements LayoutFormFactor{
defaultShift.multitap = [{...Layouts.dfltShiftToCaps}, {...Layouts.dfltShiftToDefault}] as ActiveSubKey[];
shiftShift.multitap = [{...Layouts.dfltShiftToCaps}, {...Layouts.dfltShiftToShift}] as ActiveSubKey[];

defaultShift.multitap.forEach((sk, index) => defaultShift[index] = new ActiveSubKey(sk, aLayout, 'default'));
shiftShift .multitap.forEach((sk, index) => shiftShift[index] = new ActiveSubKey(sk, aLayout, 'shift'));
defaultShift.multitap.forEach((sk, index) => defaultShift.multitap[index] = new ActiveSubKey(sk, aLayout, 'default'));
shiftShift .multitap.forEach((sk, index) => shiftShift.multitap[index] = new ActiveSubKey(sk, aLayout, 'shift'));
} // else no default shift -> caps multitaps.
}

Expand Down
2 changes: 0 additions & 2 deletions web/src/engine/osk/src/visualKeyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@ export default class VisualKeyboard extends EventEmitter<EventMap> implements Ke
}

private constructGestureEngine(): GestureRecognizer<KeyElement, string> {
const rowCount = this.kbdLayout.layerMap['default'].row.length;

const config: GestureRecognizerConfiguration<KeyElement, string> = {
targetRoot: this.element,
// document.body is the event root for mouse interactions b/c we need to track
Expand Down

0 comments on commit bef2665

Please sign in to comment.