MCPcopy
hub / github.com/philc/vimium / newKeyEvent

Function newKeyEvent

tests/unit_tests/vomnibar_page_test.js:6–20  ·  view source on GitHub ↗
(properties)

Source from the content-addressed store, hash-verified

4import * as vomnibarPage from "../../pages/vomnibar_page.js";
5
6function newKeyEvent(properties) {
7 return Object.assign(
8 {
9 type: "keydown",
10 key: "a",
11 ctrlKey: false,
12 shiftKey: false,
13 altKey: false,
14 metaKey: false,
15 stopImmediatePropagation: function () {},
16 preventDefault: function () {},
17 },
18 properties,
19 );
20}
21
22context("vomnibar page", () => {
23 let ui;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected