Keyboard shortcut overlay

This commit is contained in:
Ian Gulliver
2026-10-16 08:39:17 -07:00
parent 2624324b48
commit 14cf1f582b
9 changed files with 143 additions and 9 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ function modal(content, buttons, anchor = null) {
actions.at(-1)?.focus();
});
}
export async function showAlert(text) {
await modal(text, [{ label: "OK", value: "ok", class: "primary" }]);
export async function showAlert(content) {
await modal(content, [{ label: "OK", value: "ok", class: "primary" }]);
}
export async function showConfirm(content, action, danger = false, anchor = null) {
const value = await modal(content, [