Skip to content
Snippets Groups Projects
Unverified Commit c0cac61f authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #12180 from vitormateusalmeida/debug-window

Implement debug window shortcut for Mac OS
parents 835dba07 59842657
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,10 @@ class DebugWindow extends Component {
componentDidMount() {
document.addEventListener('keyup', (event) => {
const key = event.key.toUpperCase();
if (DEBUG_WINDOW_ENABLED && event.altKey && key === SHOW_DEBUG_WINDOW_ACCESSKEY) {
const { key, code } = event;
const eventKey = key.toUpperCase();
const eventCode = code;
if (DEBUG_WINDOW_ENABLED && event.altKey && (eventKey === SHOW_DEBUG_WINDOW_ACCESSKEY || eventCode === `Key${SHOW_DEBUG_WINDOW_ACCESSKEY}`)) {
this.debugWindowToggle();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment