fix: corretta intercettazione dello shortcut per l'invio delle email quando l'interfaccia è aperta. fix: corretto shortcut per tornare alla pagina ticket.

This commit is contained in:
Gabriele Cimaschi committed 2026-09-14 13:00:33 +02:00
1 parent 1bc3d8bf8a
commit d4ef03b6f4
3 files changed
+26 -3

No files matched your search

+3 -2
View File
@@ -64,6 +64,7 @@ const App = {
create_ticket_open: { ctrl: true, alt: true, shift: false, key: 'n', enabled: true },
create_ticket_submit: { ctrl: true, alt: false, shift: false, key: 'Enter', enabled: true },
quick_edit_save: { ctrl: true, alt: false, shift: false, key: 'Enter', enabled: true },
send_email_submit: { ctrl: true, alt: false, shift: false, key: 'Enter', enabled: true },
pdf_save_edited: { ctrl: true, alt: false, shift: false, key: 'Enter', enabled: true },
ricerca_spudorata_open: { ctrl: true, alt: false, shift: true, key: 'f', enabled: true },
ticket_list_open: { ctrl: true, alt: false, shift: true, key: 'Backspace', enabled: true },
@@ -278,7 +279,7 @@ const App = {
toggleClearBtn();
}
// Global keyboard shortcuts (e.g. Crea Nuovo Ticket, Ricerca Spudorata)
// Global keyboard shortcuts (e.g. Crea Nuovo Ticket, Ricerca Spudorata, Torna a Elenco Ticket)
document.addEventListener('keydown', (e) => {
if (this.isShortcutTriggered(e, 'create_ticket_open')) {
if (window.location.hash !== '#/tickets/new') {
@@ -302,7 +303,7 @@ const App = {
window.location.hash = '#/tickets';
}
}
});
}, true);
// Check DB connection
this.checkConnection();