@zag-js/utils
Advanced tools
Comparing version 0.0.0-dev-20220427162539 to 0.0.0-dev-20220508172505
@@ -24,4 +24,4 @@ export declare const isDev: () => boolean; | ||
export declare const isRightClick: (v: MouseEvent | PointerEvent) => boolean; | ||
export declare const isModifiedEvent: (v: MouseEvent | PointerEvent | KeyboardEvent) => boolean; | ||
export declare const isModifiedEvent: (v: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "altKey">) => boolean; | ||
export declare const isCtrlKey: (v: KeyboardEvent) => boolean; | ||
//# sourceMappingURL=guard.d.ts.map |
@@ -196,3 +196,3 @@ var __defProp = Object.defineProperty; | ||
var isRightClick = (v) => v.button === 2; | ||
var isModifiedEvent = (v) => v.ctrlKey || v.altKey || v.metaKey || v.shiftKey; | ||
var isModifiedEvent = (v) => v.ctrlKey || v.altKey || v.metaKey; | ||
var isCtrlKey = (v) => isMac() ? v.metaKey && !v.ctrlKey : v.ctrlKey && !v.metaKey; | ||
@@ -199,0 +199,0 @@ |
{ | ||
"name": "@zag-js/utils", | ||
"version": "0.0.0-dev-20220427162539", | ||
"version": "0.0.0-dev-20220508172505", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39646