MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / isMac

Function isMac

web/pgadmin/static/js/keyboard_shortcuts.js:12–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10import gettext from 'sources/gettext';
11
12function isMac() {
13 return window.navigator.userAgentData?.platform === 'macOS'
14 || window.navigator.platform.search('Mac') != -1;
15}
16
17function isKeyCtrlAlt(event) {
18 return event.ctrlKey || event.altKey;

Callers 9

constructorMethod · 0.90
handleShortcutsFunction · 0.90
matchFoundFunction · 0.90
parseShortcutValueFunction · 0.90
parseKeyEventValueFunction · 0.90
toCodeMirrorKeyFunction · 0.90
KeyboardShortcutsFunction · 0.90
shortcutToStringFunction · 0.90

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected