samgaudet / mkdocs-madlibs

Code templating with user inputs for MkDocs superfences
MIT License
7 stars 1 forks source link

Users cannot enter the letter "d" on the documentation site examples #4

Open samgaudet opened 3 months ago

samgaudet commented 3 months ago

Overview

Users are unable to type the letter d via keyboard when using the example forms on Read the Docs.

Steps to reproduce

Visit the example in the documentation here, click NAME to edit, and type the letter d with your keyboard. The letter will not be entered.

samgaudet commented 3 months ago

From some preliminary investigation (by @keenanthomson), this appears to be specific to 'Read the Docs', as the letter d is a default hotkey for some sort of toggling.

This should still be fixed, but may be less widespread than feared.

samgaudet commented 2 months ago

This is specific to 'Read the Docs' as mentioned above, and the documentation has been updated to describe how to add custom event listeners to control user inputs with MkDocs Mad Libs content: https://mkdocs-madlibs.readthedocs.io/en/latest/customization/#controlling-user-inputs

That said, there is no easy solution to this issue, as to remove the event listener via JavaScript, the event listener function itself must be passed. Thus, I will keep this issue for the time being in case others stumble upon this same issue.