From 3263fd0307d311e1e140d44f454a514fa1003022 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Thu, 5 Oct 2023 11:32:07 +0200 Subject: [PATCH] Make the toolbar buttons usable with keyboard when Page Fit is used --- web/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app.js b/web/app.js index 68c197930..560fb784b 100644 --- a/web/app.js +++ b/web/app.js @@ -3100,6 +3100,8 @@ function webViewerKeyDown(evt) { curElementTagName === "INPUT" || curElementTagName === "TEXTAREA" || curElementTagName === "SELECT" || + (curElementTagName === "BUTTON" && + (evt.keyCode === /* Enter = */ 13 || evt.keyCode === /* Space = */ 32)) || curElement?.isContentEditable ) { // Make sure that the secondary toolbar is closed when Escape is pressed.