From 6211cc7ebd3e92c1e29d1150f4a1932942228ca2 Mon Sep 17 00:00:00 2001 From: osk <52112045+o5k@users.noreply.github.com> Date: Tue, 1 Oct 2019 17:57:49 +0200 Subject: [PATCH] Allow usage of numpad enter key in the post submission shortcut --- assets/typescript/misuzu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/typescript/misuzu.tsx b/assets/typescript/misuzu.tsx index e6c7c169..61381b2c 100644 --- a/assets/typescript/misuzu.tsx +++ b/assets/typescript/misuzu.tsx @@ -96,7 +96,7 @@ window.addEventListener('load', () => { if(ctrlSubmit.length > 0) { for(let i = 0; i < ctrlSubmit.length; i++) { ctrlSubmit[i].addEventListener('keydown', ev => { - if(ev.code === 'Enter' /* i hate this fucking language so much */ + if((ev.code === 'Enter' || ev.code === 'NumpadEnter') /* i hate this fucking language so much */ && ev.ctrlKey && !ev.altKey && !ev.shiftKey && !ev.metaKey) { // for a hackjob forumPostingCloseOK = true;