diff --git a/professor/hotkeys.min.js b/professor/hotkeys.min.js new file mode 100644 index 0000000..4453fe2 --- /dev/null +++ b/professor/hotkeys.min.js @@ -0,0 +1,2 @@ +/*! hotkeys-js v3.8.7 | MIT (c) 2021 kenny wong | http://jaywcjlove.github.io/hotkeys */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).hotkeys=t()}(this,function(){"use strict";var e="undefined"!=typeof navigator&&0 + + diff --git a/professor/script.js b/professor/script.js index 48e1c26..216cc2c 100644 --- a/professor/script.js +++ b/professor/script.js @@ -41,6 +41,13 @@ function pageReady() { handleLoginState(); } + +hotkeys('ctrl+enter', function (event, handler){ + console.log(event); + document.getElementById("submit_button").click(); +}); + + function handleLoginState() { if (document.cookie.split('; ').find(row => row.startsWith('credentials='))) { document.getElementById("logout").style.display = "";