MCPcopy Create free account
hub / github.com/angular/components / rightClick

Method rightClick

src/cdk/testing/testbed/unit-test-element.ts:126–131  ·  view source on GitHub ↗
(
    ...args: [ModifierKeys?] | ['center', ModifierKeys?] | [number, number, ModifierKeys?]
  )

Source from the content-addressed store, hash-verified

124 */
125 rightClick(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
126 async rightClick(
127 ...args: [ModifierKeys?] | ['center', ModifierKeys?] | [number, number, ModifierKeys?]
128 ): Promise<void> {
129 await this._dispatchMouseEventSequence('contextmenu', args, 2);
130 await this._stabilize();
131 }
132
133 /** Focus the element. */
134 async focus(): Promise<void> {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected