jcarbaugh / python-roku

Screw remotes. Control your Roku with Python.
https://pypi.python.org/pypi/roku
BSD 3-Clause "New" or "Revised" License
294 stars 95 forks source link

Add lowercase + symbol literal input support #16

Closed alberthdev closed 7 years ago

alberthdev commented 7 years ago

According to the documentation:

When the current screen on the Roku box includes an on-screen keyboard, any keyboard character can be sent via the keyup, keydown, and keypress commands. The key parameter can either be a key name, such as the name of a button on a remote control, or a printable character value specified with the prefix "Lit_".

Printable ASCII character code values can be transmitted "as-is" with the "Lit_" prefix. For example, you can send a 'r' with "Litr". In addition, any UTF-8 encoded character can be sent by URL-encoding it. For example, the euro symbol can be sent with "Lit%E2%82%AC".

As a result, I modified core.py to include lowercase and symbol support. I've tested this with the Roku 2 XD, and lowercase letters + symbols now work!

jcarbaugh commented 7 years ago

Thanks so much for the contribution!

Now I'm going to have to go watch The Informant!