Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete list of keys in the documentation of set_keys #247

Open
pmontrasio opened this issue Mar 17, 2020 · 0 comments
Open

Incomplete list of keys in the documentation of set_keys #247

pmontrasio opened this issue Mar 17, 2020 · 0 comments

Comments

@pmontrasio
Copy link

pmontrasio commented Mar 17, 2020

The documentation starting at

* :alt - alt key
doesn't list all the keys supported by set_keys/1

I was looking for a way to send the right and left arrow keys to the browser, I kept reading the code and eventually found that set_keys/1 accepts any of the key codes defined at here and the following lines

def key_code(:null), do: "\\uE000"

Luckily the arrow keys are among them.

Maybe the documentation of set_keys/1 should link to the source code with the definitions of key_codes/1
Any developer is able to read that and there would be no need to keep the documentation of set_keys/1 in sync with the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant