diff --git a/web/source/kmwcallback.ts b/web/source/kmwcallback.ts index 1466efe325..84057bab42 100644 --- a/web/source/kmwcallback.ts +++ b/web/source/kmwcallback.ts @@ -83,7 +83,13 @@ namespace com.keyman { ['t']: 'n'; } - type ContextNonCharEntry = RuleDeadkey | ContextAny | RuleIndex | ContextEx | ContextNul; + class ContextBeep { + /** Discriminant field - 'b' for `beep` + */ + ['t']: 'b'; + } + + type ContextNonCharEntry = RuleDeadkey | ContextAny | RuleIndex | ContextEx | ContextNul | ContextBeep ; type ContextEntry = RuleChar | ContextNonCharEntry; /** @@ -507,6 +513,9 @@ namespace com.keyman { mismatch = true; } break; + case 'b': + this.beep(Ptarg); + break; default: assertNever(r); }