MCPcopy Create free account
hub / github.com/Kong/insomnia / isPrimaryClickModifier

Function isPrimaryClickModifier

packages/insomnia/src/ui/utils.ts:5–7  ·  view source on GitHub ↗
(e: React.MouseEvent | MouseEvent | PressEvent)

Source from the content-addressed store, hash-verified

3import type { Key } from 'react-stately';
4
5export const isPrimaryClickModifier = (e: React.MouseEvent | MouseEvent | PressEvent) => {
6 return isMac ? e.metaKey : e.ctrlKey;
7};
8
9export const scrollElementIntoView = (element: HTMLElement, options?: ScrollIntoViewOptions) => {
10 if (element) {

Callers 5

ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
CommandPaletteComboboxFunction · 0.90

Calls

no outgoing calls

Tested by 1

ComponentFunction · 0.72