Skip to content

Commit

Permalink
swapped key combos for better usability.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Dec 18, 2024
1 parent ec454a8 commit f23049d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
10 changes: 5 additions & 5 deletions assets/js/editor-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ import { getElmById } from "./helper.mjs";
return;
}
const refresher = "Enter";
const dataEditor = "F9";
const assetEditor = "F10";
const emulateEditor = "F11";
const dataEditor = "Home";
const assetEditor = "PageDown";
const emulateEditor = "PageUp";
const deleteEditor = "Delete";
const closeEditors = "F12";
const approveRecord = "ArrowDown";
const closeEditors = "Backspace";
const approveRecord = "ArrowUp";
let approve = document.getElementById("editor-online-true");
switch (event.key) {
case approveRecord:
Expand Down
3 changes: 0 additions & 3 deletions assets/js/helper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ export function titleize(text) {
"xp",
"ys",
];

// TODO: replace trailing full stops

text = text.trim();
// Replace all underscores with spaces
text = text.replace(/_/g, " ");
Expand Down
2 changes: 1 addition & 1 deletion public/js/editor-assets.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions view/app/artifactfooter.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
</span>
</div>
<div class="col-lg-8 text-lg-end">
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + enter">
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + Enter">
<a href="/f/{{$download}}" class="btn btn-link d-none d-xl-inline">Refresh &amp; view artifact</a>
</span>
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + F9">
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + Home">
<button name="artifact-editor-dataeditor" data-bs-toggle="modal" data-bs-target="#artifact-editor-modal" class="btn btn-outline-primary">Data editor</button>
</span>
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + F10">
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + PgDn">
<button name="artifact-editor-fileeditor" data-bs-toggle="modal" data-bs-target="#asset-editor-modal" class="btn btn-outline-primary">File editor</button>
</span>
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + F11">
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + PgUp">
<button name="artifact-editor-emueditor" data-bs-toggle="modal" data-bs-target="#emulate-editor-modal" class="btn btn-outline-primary">Emulate editor</button>
</span>
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + F12">
<span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="alt + shift + Backspace">
<button type="button" data-bs-dismiss="modal"
class="btn btn-secondary d-none d-lg-inline">Close</button>
</span>
Expand Down

0 comments on commit f23049d

Please sign in to comment.