| <script type="text/javascript">
document.onkeyup = function(e) { if (e.which == 77) { //alert("M key was pressed"); // see https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes // 0 - 9 = 48 + number, a - z = 64 + letter (ex. T = 64 + 20 = 84) } else if (e.ctrlKey && e.which == 66) { // alert("Ctrl + B shortcut combination was pressed"); AddBold2() } else if (e.ctrlKey && e.which == 53) { // Ctrl+5 = 5wh SetTime2() } else if (e.altKey && e.which == 85) { // Ctrl+U = Update but no javascript have to do the form submit document.form.submit() } else if (e.ctrlKey && e.altKey && e.which == 89) { //alert("Ctrl + Alt + Y shortcut combination was pressed"); } else if (e.ctrlKey && e.altKey && e.shiftKey && e.which == 85) { //alert("Ctrl + Alt + Shift + U shortcut combination was pressed"); } }; </script> |