diff --git a/js/index.js b/js/index.js index 387ed8e..0de8b99 100644 --- a/js/index.js +++ b/js/index.js @@ -22,6 +22,14 @@ document.addEventListener('DOMContentLoaded', () => { event.preventDefault(); // Prevent default browser behavior insertTag('italic'); } + if (event.ctrlKey && event.key.toLowerCase() === 'b') { + event.preventDefault(); // Prevent default browser behavior + insertTag('bold'); + } + if (event.ctrlKey && event.key.toLowerCase() === 'u') { + event.preventDefault(); // Prevent default browser behavior + insertTag('bolditalic'); + } }); window.changeHeaderLevel = function() {