From 4d4d6ba814590bcf330873ba91c588a7bc4c8d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Wed, 4 Jul 2018 19:51:18 +0200 Subject: [PATCH] Add c+r to reload the app --- src/components/layout/Default.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/layout/Default.js b/src/components/layout/Default.js index 4f8bab68..964d7c32 100644 --- a/src/components/layout/Default.js +++ b/src/components/layout/Default.js @@ -1,5 +1,6 @@ // @flow +import { remote } from 'electron' import React, { Fragment, Component } from 'react' import { compose } from 'redux' import styled from 'styled-components' @@ -70,6 +71,8 @@ class Default extends Component { kbShortcut = event => { if (event.ctrlKey && event.key === 'l') { this.props.i18n.reloadResources() + } else if ((event.ctrlKey || event.metaKey) && event.key === 'r') { + remote.getCurrentWindow().webContents.reload() } }