chore(bidi): fix invocation of getBidiKeyValue for keyup and add support for "Space"

This commit is contained in:
Henrik Skupin 2025-01-10 14:57:54 +01:00
parent e5d4cfb86e
commit 0ac18dc18c
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -131,6 +131,8 @@ export const getBidiKeyValue = (code: string) => {
return '\uE052';
case 'MetaRight':
return '\uE053';
case 'Space':
return ' ';
case 'Digit0':
return '0';
case 'Digit1':