From 0a5b732894cc73985bd6aa262682f956413a08bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Go=C5=82aszewski?= Date: Tue, 28 Jul 2020 14:41:05 +0200 Subject: [PATCH 1/4] Toggle Inspector on global ALT+F12 keyboard shortcut. --- src/ui.js | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/ui.js b/src/ui.js index 8784d7c..91512ee 100644 --- a/src/ui.js +++ b/src/ui.js @@ -3,7 +3,7 @@ * For licensing, see LICENSE.md. */ -/* global document */ +/* global document, window */ import React, { Component } from 'react'; import { Rnd } from 'react-rnd'; @@ -118,11 +118,17 @@ export class DocsButton extends Component { } class ToggleButtonVisual extends Component { + constructor( props ) { + super( props ); + + this.handleShortcut = this.handleShortcut.bind( this ); + } + render() { return