N°3524 Add keyboard shortcuts to global actions

This commit is contained in:
Stephen Abello
2021-03-17 10:56:18 +01:00
parent 8dd8f98b61
commit a8ede8b857
26 changed files with 345 additions and 33 deletions

View File

@@ -132,6 +132,9 @@ CKEDITOR.plugins.add( 'disabler',
// Processing on each pages of the backoffice
$(document).ready(function(){
// Initialize global keyboard shortcuts
$('body').keyboard_shortcuts({shortcuts: aKeyboardShortcuts});
// Enable tooltips based on existing HTML markup, won't work on markup added dynamically after DOM ready (AJAX, ...)
$('[data-tooltip-content]:not([data-tooltip-instantiated="true"])').each(function () {
CombodoTooltip.InitTooltipFromMarkup($(this));