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

Function newKeyEvent

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

Source from the content-addressed store, hash-verified

4import * as UIComponentMessenger from "../../pages/ui_component_messenger.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("hud page", () => {
23 let ui;

Callers 1

hud_page_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected