Allow usage of numpad enter key in the post submission shortcut
This commit is contained in:
parent
368d4f546e
commit
6211cc7ebd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue