unifiedremote / Docs

Official API documentation.
149 stars 33 forks source link

Some keys work wrong in Windows. #36

Open SelnRocks opened 3 years ago

SelnRocks commented 3 years ago

I made a remote for youtube but i got a problem with search button ("/"). Pressing it activates search field on youtube page. When i use stroke("/") it doesn't work and in notepad i found it returns "\". I tried to use text("/") and it works fine, but when i change my windows input language to russian it stops working, although returns "/". I found out that 'press' and 'stroke' methods work regardless of keyboard layout, but 'text' and 'character' don't. Also "<" and ">" symbols with 'stroke' or 'press' method return "\". Any ideas?

HalJordan commented 2 years ago

A lot of ones like that you use the name "slash" instead of the actual character. This lists out the various keys available:

https://github.com/unifiedremote/Docs/blob/master/res/keys.md

However, it may not be fully accurate, I'd still test it a bit. I'm on Linux here, but using it for a game running in wine, and I'm running into some not translating properly(like F13-24).