import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { Helmet } from 'react-helmet'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import Column from 'flavours/glitch/components/column'; import ColumnHeader from 'flavours/glitch/components/column_header'; 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));