UNPKG

@tldraw/editor

Version:

tldraw infinite canvas SDK (editor).

9 lines (7 loc) 234 B
import { tlenv } from '../globals/environment' /** @internal */ export const isAccelKey = <InputType extends { metaKey: boolean; ctrlKey: boolean }>( e: InputType ) => { return tlenv.isDarwin ? e.metaKey : e.ctrlKey || e.metaKey }