Make the toolbar buttons usable with keyboard when Page Fit is used

This commit is contained in:
Calixte Denizet 2023-10-05 11:32:07 +02:00
parent c4c24c6d18
commit 3263fd0307

View File

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