Browse Source

Add c+r to reload the app

master
Gaëtan Renaudeau 7 years ago
parent
commit
4d4d6ba814
  1. 3
      src/components/layout/Default.js

3
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<Props> {
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()
}
}

Loading…
Cancel
Save