ocaml.org
ocaml.org copied to clipboard
Can't type '/' in playground editor
As reported by someone on the OCaml Discord, the following code results in annoying behaviour in the playground:
https://github.com/ocaml/ocaml.org/blob/76b4c342ab2a205108ca3b11f5e52dfe32c44a0b/src/ocamlorg_frontend/components/search.eml#L71-L76
On https://ocaml.org/play this results in the user being unable to type / into the code editor, as it pulls focus away (onto the search bar).
Perhaps the handler should be adapted to check whether the editor component is focused?