Adds support for 'beep' in stores to KMW. Nothing for Developer yet.

This commit is contained in:
Joshua A. Horton 2018-05-07 14:12:11 +07:00
parent 2a924927e5
commit e40a4eaacb

View file

@ -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);
}