Remove the possibility to go to the next page in using the ENTER key (bug 1971299)

This commit is contained in:
Calixte Denizet 2025-06-10 14:58:18 +02:00
parent 250cc7d299
commit 07f94825c3

View File

@ -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 &&