diff --git a/web/app.js b/web/app.js index a8e1513fe..989d6172a 100644 --- a/web/app.js +++ b/web/app.js @@ -2954,12 +2954,12 @@ function webViewerKeyDown(evt) { if (!PDFViewerApplication.supportsIntegratedFind) { const { state } = PDFViewerApplication.findController; if (state) { - const eventState = Object.assign(Object.create(null), state, { + const newState = { source: window, type: "again", findPrevious: cmd === 5 || cmd === 12, - }); - eventBus.dispatch("find", eventState); + }; + eventBus.dispatch("find", { ...state, ...newState }); } handled = true; }