aboutsummaryrefslogtreecommitdiff
path: root/views/script/menu_global.js
diff options
context:
space:
mode:
authorMinteck <46352972+Minteck@users.noreply.github.com>2021-07-20 01:30:23 +0200
committerMinteck <46352972+Minteck@users.noreply.github.com>2021-07-20 01:30:23 +0200
commit44210691ee8444509ac466a362337af77f2bcd49 (patch)
tree4dc2f242cf5fd4daa3fc6f9e42516e7d55b73538 /views/script/menu_global.js
parentefa5fc926071de7087836d399c42f53e701b4cff (diff)
downloadkartik-client-44210691ee8444509ac466a362337af77f2bcd49.tar.gz
kartik-client-44210691ee8444509ac466a362337af77f2bcd49.tar.bz2
kartik-client-44210691ee8444509ac466a362337af77f2bcd49.zip
Commit
Diffstat (limited to 'views/script/menu_global.js')
-rw-r--r--views/script/menu_global.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/script/menu_global.js b/views/script/menu_global.js
index 8561fe3..14a924f 100644
--- a/views/script/menu_global.js
+++ b/views/script/menu_global.js
@@ -14,6 +14,9 @@ $(document).keydown(function(e) {
if (loggingIn) { return; }
if (keysEnabled) {
+ if (e.ctrlKey && e.keyCode === 13) { // ctrl+enter
+ throw new RangeError("Manually initiated crash");
+ }
if (e.keyCode === 13 || e.keyCode === 88 || e.keyCode === 32) { // enter
if ($(".services").is(":visible")) {
selectOption();