2017-07-11 15:37:43 +00:00
|
|
|
import React from 'react';
|
2019-01-16 22:56:18 +00:00
|
|
|
import { metaKeyName, } from '../../../utils/metaKey';
|
2017-06-06 19:20:21 +00:00
|
|
|
|
2017-07-11 15:37:43 +00:00
|
|
|
function KeyboardShortcutModal() {
|
|
|
|
return (
|
|
|
|
<ul className="keyboard-shortcuts" title="keyboard shortcuts">
|
|
|
|
<li className="keyboard-shortcut-item">
|
2017-09-01 17:38:40 +00:00
|
|
|
<span className="keyboard-shortcut__command">{'\u21E7'} + Tab</span>
|
2017-07-11 15:37:43 +00:00
|
|
|
<span>Tidy</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + S
|
|
|
|
</span>
|
|
|
|
<span>Save</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + F
|
|
|
|
</span>
|
|
|
|
<span>Find Text</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + G
|
|
|
|
</span>
|
|
|
|
<span>Find Next Text Match</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
2017-09-01 17:38:40 +00:00
|
|
|
{metaKeyName} + {'\u21E7'} + G
|
2017-07-11 15:37:43 +00:00
|
|
|
</span>
|
|
|
|
<span>Find Previous Text Match</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + [
|
|
|
|
</span>
|
|
|
|
<span>Indent Code Left</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + ]
|
|
|
|
</span>
|
|
|
|
<span>Indent Code Right</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + /
|
|
|
|
</span>
|
|
|
|
<span>Comment Line</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + Enter
|
|
|
|
</span>
|
|
|
|
<span>Start Sketch</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
2017-09-01 17:38:40 +00:00
|
|
|
{metaKeyName} + {'\u21E7'} + Enter
|
2017-07-11 15:37:43 +00:00
|
|
|
</span>
|
|
|
|
<span>Stop Sketch</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
2017-09-01 17:38:40 +00:00
|
|
|
{metaKeyName} + {'\u21E7'} + 1
|
2017-07-11 15:37:43 +00:00
|
|
|
</span>
|
2017-09-15 16:14:01 +00:00
|
|
|
<span>Turn on Accessible Output</span>
|
2017-07-11 15:37:43 +00:00
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
2017-09-01 17:38:40 +00:00
|
|
|
{metaKeyName} + {'\u21E7'} + 2
|
2017-07-11 15:37:43 +00:00
|
|
|
</span>
|
2017-09-15 16:14:01 +00:00
|
|
|
<span>Turn off Accessible Output</span>
|
2017-07-11 15:37:43 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
);
|
2016-09-07 21:47:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default KeyboardShortcutModal;
|