Skip to content

Commit

Permalink
Allow to open DevTools on mac (closes DevExpress#1193) (DevExpress#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMoskovkin authored and AndreyBelym committed Jan 31, 2017
1 parent 0986a0f commit 5bc0cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/core/prevent-real-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const F12_KEY_CODE = 123;
function checkBrowserHotkey (e) {
// NOTE: Opening browser tools with F12, CTRL+SHIFT+<SYMBOL KEY>
// on PC or with OPTION(ALT)+CMD+<SYMBOL KEY> on Mac.
return e.shiftKey && e.ctrlKey || e.altKey && e.isMacPlatform || e.keyCode === F12_KEY_CODE;
return e.shiftKey && e.ctrlKey || (e.altKey || e.metaKey) && browserUtils.isMacPlatform || e.keyCode === F12_KEY_CODE;
}

// NOTE: when tests are running, we should block real events (from mouse
Expand Down

0 comments on commit 5bc0cc4

Please sign in to comment.