robotgo icon indicating copy to clipboard operation
robotgo copied to clipboard

International keys (Swedish)

Open Solander opened this issue 4 years ago • 1 comments

  • Robotgo version (or commit ref): 0.90.2
  • Go version: 1.15.1 linux/amd64
  • Gcc version: 9.3.0
  • Operating system and bit: Linux Ubuntu 20.04, 64bit
  • Resolution: 2560x1440
  • Can you reproduce the bug at Examples:
    • [x] Yes (provide example code)
    • [ ] No
    • [ ] Not relevant
  • Provide example code:
robotgo.KeyTap("å")
robotgo.KeyTap("ä")
robotgo.KeyTap("ö")

Description

I'm trying to figure out how to use international keys (Swedish in my case) in robotgo. I can't find any information regarding this.

A workaround is to use robotgo.TypeStr("ö") but that makes it difficult to handle modifiers, such as SHIFT.

Any information about this would be greatly appreciated!

Solander avatar Apr 16 '21 13:04 Solander

You need a map[string]string mapping table.

vcaesar avatar Apr 19 '21 17:04 vcaesar