fix: ora è possibile variare la quantità di risultati dalla pagina ricerca spudorata. feat: aggiunto shortcut ctrl+shift+f per raggiungere la pagina ricerca spudorata.

This commit is contained in:
Gabriele Cimaschi committed 2026-09-11 18:27:12 +02:00
1 parent 6944b02263
commit a15ab7e89d
3 files changed
+61 -6

No files matched your search

+13 -1
View File
@@ -65,6 +65,7 @@ const App = {
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 },
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 },
};
return defaults[id] || { ctrl: true, alt: false, shift: false, key: 'Enter', enabled: true };
},
@@ -261,13 +262,24 @@ const App = {
toggleClearBtn();
}
// Global keyboard shortcuts (e.g. Crea Nuovo Ticket)
// Global keyboard shortcuts (e.g. Crea Nuovo Ticket, Ricerca Spudorata)
document.addEventListener('keydown', (e) => {
if (this.isShortcutTriggered(e, 'create_ticket_open')) {
if (window.location.hash !== '#/tickets/new') {
e.preventDefault();
window.location.hash = '#/tickets/new';
}
} else if (this.isShortcutTriggered(e, 'ricerca_spudorata_open')) {
e.preventDefault();
if (!window.location.hash.startsWith('#/ricerca-spudorata')) {
window.location.hash = '#/ricerca-spudorata';
} else {
const searchInput = document.getElementById('spudorata-search-input');
if (searchInput) {
searchInput.focus();
searchInput.select();
}
}
}
});