chore(bidi): fix invocation of getBidiKeyValue for keyup and add support for "Space"
This commit is contained in:
parent
e5d4cfb86e
commit
0ac18dc18c
|
|
@ -40,7 +40,7 @@ export class RawKeyboardImpl implements input.RawKeyboard {
|
|||
|
||||
async keyup(modifiers: Set<types.KeyboardModifier>, code: string, keyCode: number, keyCodeWithoutLocation: number, key: string, location: number): Promise<void> {
|
||||
const actions: bidi.Input.KeySourceAction[] = [];
|
||||
actions.push({ type: 'keyUp', value: getBidiKeyValue(key) });
|
||||
actions.push({ type: 'keyUp', value: getBidiKeyValue(code) });
|
||||
await this._performActions(actions);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -131,6 +131,8 @@ export const getBidiKeyValue = (code: string) => {
|
|||
return '\uE052';
|
||||
case 'MetaRight':
|
||||
return '\uE053';
|
||||
case 'Space':
|
||||
return ' ';
|
||||
case 'Digit0':
|
||||
return '0';
|
||||
case 'Digit1':
|
||||
|
|
|
|||
Loading…
Reference in a new issue