moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.74k stars 244 forks source link

Cannot get '1' from Alt+1 #522

Open lukepighetti opened 1 year ago

lukepighetti commented 1 year ago

If you press Alt+1 it returns Alt and ¡ on macOS. I haven't been able to find a way to get the 1 key when pressing Alt

listener.canonicalize(key) doesn't seem to work, but I expected it to

key.vk has shows 18 when pressing both 1 and Alt+1, but I see no easy way to work that back to 1