pub(crate) fn keyboard_event_ctor(
it: &mut Interp,
t: Value,
a: &[Value],
) -> Result<Value, Value>Expand description
new KeyboardEvent(type, options)(丸ごと未対応だった。el.dispatchEvent (new KeyboardEvent('keydown', {key:'a', code:'KeyA'})) というキーボード
操作シミュレーションの定番パターン)。基底の Event プロパティは
event_ctor を再利用し、key/code/keyCode(レガシー)/which
(レガシー)/location/repeat/修飾キー4種を追加する。