import React from 'react'; import Column from 'flavours/glitch/components/column'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ColumnHeader from 'flavours/glitch/components/column_header'; import { Helmet } from 'react-helmet'; const messages = defineMessages({ heading: { id: 'keyboard_shortcuts.heading', defaultMessage: 'Keyboard Shortcuts' }, }); const mapStateToProps = state => ({ collapseEnabled: state.getIn(['local_settings', 'collapsed', 'enabled']), }); class KeyboardShortcuts extends ImmutablePureComponent { static propTypes = { intl: PropTypes.object.isRequired, multiColumn: PropTypes.bool, collapseEnabled: PropTypes.bool, }; render () { const { intl, collapseEnabled, multiColumn } = this.props; return (
{collapseEnabled && ( )}
r
m
p
f
b
d
enter, o
e
x
h
shift+x
up, k
down, j
1-9
n
alt+n
alt+x
backspace
s
alt+enter
esc
?
); } } export default connect(mapStateToProps)(injectIntl(KeyboardShortcuts));