We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12967ae commit fb844e0Copy full SHA for fb844e0
packages/app/src/app/pages/Sandbox/Editor/index.js
@@ -35,9 +35,6 @@ export default class ContentSplit extends React.PureComponent<Props, State> {
35
if (e.keyCode === 16) {
36
if (!this.shiftPressed) {
37
this.shiftPressed = true;
38
- if (this.timeout) {
39
- clearTimeout(this.timeout);
40
- }
41
this.timeout = setTimeout(() => {
42
this.shiftPressed = false;
43
}, 500);
@@ -53,6 +50,9 @@ export default class ContentSplit extends React.PureComponent<Props, State> {
53
50
54
51
componentWillUnmount() {
55
52
document.removeEventListener('keydown', this.handleKeyPress);
+ if (this.timeout) {
+ clearTimeout(this.timeout);
+ }
56
}
57
58
toggleWorkspace = () =>
0 commit comments