ArtifexSoftware / mupdf.js

JavaScript bindings for MuPDF
https://mupdfjs.readthedocs.io
GNU Affero General Public License v3.0
371 stars 22 forks source link

Issue #78: Change search box event to oninput #87

Closed mipo1357 closed 4 months ago

mipo1357 commented 4 months ago

78

With the onChange event, processing is called when the focus is removed from the search box after text entry (or when the return key is pressed). Therefore, if the Next button is pressed without pressing the Return key after entering text, the search by the button is executed as soon as the focus is removed, so the search for the next page is executed immediately after the search for the current page is executed, so the page seems to be skipped.

If the search box is executed with the oninput event, the process will occur each time text is entered, ensuring that the search is executed on the current page.

You would be able to use it without any discomfort when pressing the Next button.