fix: corretta pulizia delle code quando si passa con il tab. feat: aggiunto shortcut per tornare alla pagina ticket.
This commit is contained in:
1 parent
c33a7a4666
commit
1bc3d8bf8a
4 files changed
+29
-5
No files matched your search
@@ -66,6 +66,7 @@ const App = {
|
||||
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 },
|
||||
ticket_list_open: { ctrl: true, alt: false, shift: true, key: 'Backspace', enabled: true },
|
||||
};
|
||||
return defaults[id] || { ctrl: true, alt: false, shift: false, key: 'Enter', enabled: true };
|
||||
},
|
||||
@@ -295,6 +296,11 @@ const App = {
|
||||
searchInput.select();
|
||||
}
|
||||
}
|
||||
} else if (this.isShortcutTriggered(e, 'ticket_list_open')) {
|
||||
if (window.location.hash !== '#/tickets' && window.location.hash !== '') {
|
||||
e.preventDefault();
|
||||
window.location.hash = '#/tickets';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user