Skip to content

Commit 3baea2f

Browse files
authored
Merge pull request #20003 from calixteman/bug1971299
Remove the possibility to go to the next page in using the ENTER key (bug 1971299)
2 parents 412500c + 07f9482 commit 3baea2f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

web/app.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2897,8 +2897,7 @@ function onKeyDown(evt) {
28972897
curElementTagName === "INPUT" ||
28982898
curElementTagName === "TEXTAREA" ||
28992899
curElementTagName === "SELECT" ||
2900-
(curElementTagName === "BUTTON" &&
2901-
(evt.keyCode === /* Enter = */ 13 || evt.keyCode === /* Space = */ 32)) ||
2900+
(curElementTagName === "BUTTON" && evt.keyCode === /* Space = */ 32) ||
29022901
curElement?.isContentEditable
29032902
) {
29042903
// Make sure that the secondary toolbar is closed when Escape is pressed.
@@ -2969,7 +2968,6 @@ function onKeyDown(evt) {
29692968
}
29702969
turnPage = 1;
29712970
break;
2972-
case 13: // enter key
29732971
case 32: // spacebar
29742972
if (!isViewerInPresentationMode) {
29752973
turnOnlyIfPageFit = true;
@@ -3037,7 +3035,6 @@ function onKeyDown(evt) {
30373035
// shift-key
30383036
if (cmd === 4) {
30393037
switch (evt.keyCode) {
3040-
case 13: // enter key
30413038
case 32: // spacebar
30423039
if (
30433040
!isViewerInPresentationMode &&

0 commit comments

Comments
 (0)