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

missing 'SPACE' keycode #6

Closed
ladyada opened this issue Aug 15, 2017 · 4 comments
Closed

missing 'SPACE' keycode #6

ladyada opened this issue Aug 15, 2017 · 4 comments

Comments

@ladyada
Copy link
Member

ladyada commented Aug 15, 2017

i think its '44' :)

@dhalbert
Copy link
Collaborator

dhalbert commented Aug 15, 2017

There's a SPACEBAR keycode, but I can add an alias for it named SPACE -- it's certainly more obvious! I was going by the names in http://www.usb.org/developers/hidpage/Hut1_12v2.pdf#page=58.

You can use the KeyboardLayoutUS class to convert strings to keypresses if that's more convenient.

@ladyada
Copy link
Member Author

ladyada commented Aug 15, 2017

ooh! it doesnt appear in http://circuitpython.readthedocs.io/projects/hid/en/latest/keycode.html ?
I think SPACE is more in line (i needed to do control-space so no string usage)

@dhalbert
Copy link
Collaborator

Oy, that's a doc issue. I didn't realize constants with no comments don't show up in readthedocs.

    """Delete backward (Backspace)"""
    TAB = 0x2B
    """Tab and Backtab"""
    SPACEBAR = 0x2C
    MINUS = 0x2D
    """``-` and ``_``"""

A through Z are not in the docs either. I didn't add comments to them because I thought they were obvious.

I should check whether there's a setting to include definitions with no doc string.

@tannewt
Copy link
Member

tannewt commented Jan 24, 2018

Done in 6cdeb91

@tannewt tannewt closed this as completed Jan 24, 2018
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

3 participants