mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-10-25 00:02:16 +00:00
updated keyboard shortcuts dialog
This commit is contained in:
1 parent
a2c344f98a
commit
d67d48c302
2 files changed
+3
-5
No files matched your search
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "8bitworkshop",
|
||||
"version": "3.12.1",
|
||||
"version": "4.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "8bitworkshop",
|
||||
"version": "3.12.1",
|
||||
"version": "4.0.0",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@codemirror/commands": "^6.10.2",
|
||||
|
||||
+1
-3
@@ -1834,7 +1834,6 @@ function openToolVersions() {
|
||||
function openKeyboardShortcuts() {
|
||||
const isMac = /Mac|iPhone|iPad/.test(navigator.platform);
|
||||
const mod = isMac ? '⌘' : 'Ctrl';
|
||||
const alt = isMac ? '⌥' : 'Alt';
|
||||
const shift = isMac ? '⇧' : 'Shift';
|
||||
const shortcut = (keys: string, desc: string) =>
|
||||
`<tr><td><kbd>${keys}</kbd></td><td>${desc}</td></tr>`;
|
||||
@@ -1845,10 +1844,9 @@ function openKeyboardShortcuts() {
|
||||
<table class="help">
|
||||
<tr><th colspan="2">Custom</th></tr>
|
||||
${shortcut(`${mod}+${shift}+F`, 'Search symbols, files, and docs')}
|
||||
${shortcut(`${shift}+${alt}+F`, 'Format document, or selected range(s)')}
|
||||
${shortcut('Tab', 'Insert to next tab stop, or indent selected range(s)')}
|
||||
${shortcut(`${shift}+Tab`, 'Outdent line(s) or selected range(s)')}
|
||||
${shortcut(`Enter`, 'Insert newline, keep cursor at same column pos')}
|
||||
${shortcut(`${mod}+${shift}+Backspace`, 'Delete line')}
|
||||
<tr><th colspan="2">Standard</th></tr>
|
||||
<tr>
|
||||
<td>Built-in</td>
|
||||
|
||||
Reference in new issue
Block a user