From be90a8c7b6908fe1a63186bc365d3fd230ac6aa6 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 19 Mar 2017 21:02:31 +0100 Subject: [PATCH] Prevent focus on buttons --- src/renderer.jsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/renderer.jsx b/src/renderer.jsx index c886dc58..7e70273a 100644 --- a/src/renderer.jsx +++ b/src/renderer.jsx @@ -63,6 +63,13 @@ function renderHelpSheet(visible) { return undefined; } +function withBlur(cb) { + return (e) => { + e.target.blur(); + cb(); + }; +} + class App extends React.Component { constructor(props) { super(props); @@ -324,7 +331,7 @@ class App extends React.Component {
@@ -354,7 +361,7 @@ class App extends React.Component {