More keyboard shortcuts
This commit is contained in:
@@ -64,7 +64,11 @@ class Layout extends React.Component {
|
||||
</Flex>
|
||||
{ this.props.search && (
|
||||
<Flex>
|
||||
<div className={ styles.search } onClick={ this.search }>
|
||||
<div
|
||||
onClick={ this.search }
|
||||
className={ styles.search }
|
||||
title="Search (/)"
|
||||
>
|
||||
<img src={ require('assets/icons/search.svg') } />
|
||||
</div>
|
||||
</Flex>
|
||||
|
||||
@@ -20,6 +20,7 @@ class MarkdownEditor extends React.Component {
|
||||
text: React.PropTypes.string,
|
||||
onChange: React.PropTypes.func.isRequired,
|
||||
replaceText: React.PropTypes.func.isRequired,
|
||||
onSave: React.PropTypes.func.isRequired,
|
||||
|
||||
// This is actually not used but it triggers
|
||||
// re-render to help with CodeMirror focus issues
|
||||
@@ -120,6 +121,8 @@ class MarkdownEditor extends React.Component {
|
||||
theme: 'atlas',
|
||||
extraKeys: {
|
||||
Enter: 'newlineAndIndentContinueMarkdownList',
|
||||
"Ctrl-Enter": this.props.onSave,
|
||||
"Cmd-Enter": this.props.onSave,
|
||||
},
|
||||
placeholder: "# Start with a title...",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user