2017-07-11 17:37:43 +02:00
|
|
|
import React from 'react';
|
2017-02-22 20:29:35 +01:00
|
|
|
|
2017-06-06 21:20:21 +02:00
|
|
|
import {
|
|
|
|
metaKeyName,
|
|
|
|
} from '../../../utils/metaKey';
|
|
|
|
|
2017-07-11 17:37:43 +02:00
|
|
|
function KeyboardShortcutModal() {
|
|
|
|
return (
|
|
|
|
<ul className="keyboard-shortcuts" title="keyboard shortcuts">
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">Shift + Tab</span>
|
|
|
|
<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">
|
|
|
|
{metaKeyName} + Shift + G
|
|
|
|
</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">
|
|
|
|
{metaKeyName} + Shift + Enter
|
|
|
|
</span>
|
|
|
|
<span>Stop Sketch</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + Shift + 1
|
|
|
|
</span>
|
|
|
|
<span>Toggle Text-based Canvas</span>
|
|
|
|
</li>
|
|
|
|
<li className="keyboard-shortcut-item">
|
|
|
|
<span className="keyboard-shortcut__command">
|
|
|
|
{metaKeyName} + Shift + 2
|
|
|
|
</span>
|
|
|
|
<span>Turn Off Text-based Canvas</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
);
|
2016-09-07 23:47:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default KeyboardShortcutModal;
|