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:
1 parent
1bc3d8bf8a
commit
d4ef03b6f4
3 files changed
+26
-3
No files matched your search
@@ -559,7 +559,22 @@ const EmailCompose = (() => {
|
||||
});
|
||||
|
||||
// Send
|
||||
document.getElementById('ec-send').addEventListener('click', () => sendEmail(toTagsCtrl, ccTagsCtrl, bccTagsCtrl));
|
||||
const handleEmailSend = () => sendEmail(toTagsCtrl, ccTagsCtrl, bccTagsCtrl);
|
||||
document.getElementById('ec-send').addEventListener('click', handleEmailSend);
|
||||
|
||||
// Keyboard shortcut handler for email compose modal
|
||||
const handleEmailKeydown = (e) => {
|
||||
if (!document.getElementById('email-compose-overlay')) {
|
||||
document.removeEventListener('keydown', handleEmailKeydown, true);
|
||||
return;
|
||||
}
|
||||
if (App.isShortcutTriggered(e, 'send_email_submit')) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
handleEmailSend();
|
||||
}
|
||||
};
|
||||
document.addEventListener('keydown', handleEmailKeydown, true);
|
||||
}
|
||||
|
||||
function processFiles(files) {
|
||||
|
||||
@@ -93,6 +93,13 @@ const ShortcutsView = {
|
||||
context: 'Pagina Dettaglio Ticket',
|
||||
defaultCombo: { ctrl: true, alt: false, shift: false, key: 'Enter', enabled: true }
|
||||
},
|
||||
{
|
||||
id: 'send_email_submit',
|
||||
name: 'Invia Email',
|
||||
description: 'Invia l\'email quando la finestra di composizione email è aperta',
|
||||
context: 'Modal Composizione Email',
|
||||
defaultCombo: { ctrl: true, alt: false, shift: false, key: 'Enter', enabled: true }
|
||||
},
|
||||
{
|
||||
id: 'pdf_save_edited',
|
||||
name: 'Salva Immagine / Allegato / PDF Modificato',
|
||||
|
||||
Reference in new issue
Block a user