From 07f94825c36b91f5a052ba0f68a24fc3e4c80f99 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Tue, 10 Jun 2025 14:58:18 +0200 Subject: [PATCH] Remove the possibility to go to the next page in using the ENTER key (bug 1971299) --- web/app.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web/app.js b/web/app.js index 6b7f95e1d..dea04724d 100644 --- a/web/app.js +++ b/web/app.js @@ -2897,8 +2897,7 @@ function onKeyDown(evt) { curElementTagName === "INPUT" || curElementTagName === "TEXTAREA" || curElementTagName === "SELECT" || - (curElementTagName === "BUTTON" && - (evt.keyCode === /* Enter = */ 13 || evt.keyCode === /* Space = */ 32)) || + (curElementTagName === "BUTTON" && evt.keyCode === /* Space = */ 32) || curElement?.isContentEditable ) { // Make sure that the secondary toolbar is closed when Escape is pressed. @@ -2969,7 +2968,6 @@ function onKeyDown(evt) { } turnPage = 1; break; - case 13: // enter key case 32: // spacebar if (!isViewerInPresentationMode) { turnOnlyIfPageFit = true; @@ -3037,7 +3035,6 @@ function onKeyDown(evt) { // shift-key if (cmd === 4) { switch (evt.keyCode) { - case 13: // enter key case 32: // spacebar if ( !isViewerInPresentationMode &&