From 27bad1db14c6825d9f95b6a145bff34a7fc4cc11 Mon Sep 17 00:00:00 2001 From: CHaBou Date: Sat, 12 May 2018 15:39:51 +0200 Subject: [PATCH] Fix double action on keymap after a reload (#3006) Fixes #3004 --- lib/containers/hyper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/containers/hyper.js b/lib/containers/hyper.js index 543f43d5..72b69816 100644 --- a/lib/containers/hyper.js +++ b/lib/containers/hyper.js @@ -97,6 +97,7 @@ class Hyper extends React.PureComponent { componentWillUnmount() { document.body.style.backgroundColor = 'inherit'; + this.mousetrap && this.mousetrap.reset(); } render() {