octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.41k stars 972 forks source link

typeString on Linux types "1" for "!" #284

Closed grassick closed 5 years ago

grassick commented 7 years ago

Expected Behavior

I expected typeString to type "!", not "1"

Current Behavior

typeString("hello!") types "hello1" in Ubuntu 16

Steps to Reproduce (for bugs)

  1. robot.typeString("hello!")
  2. See what is typed

Context

Trying to use for a voice dictation system using Google Cloud Speech

Your Environment

marcopin commented 7 years ago

Same behavior for latin keyboard where "@" is typed using "Alt-Gr + 2". No modifier for "Alt-Gr"

xywang68 commented 6 years ago

Have seen the same issue. shifted char are not shifted in typeString() call. https://github.com/octalmage/robotjs/issues/345

UrielCh commented 6 years ago

for arobase '@' not working for me on linux.

 robot.typeString('2', 'shift'); // print a @ on a US qwerty keymap
oktapodia commented 5 years ago

This issue has been closed because it has been inactive for > 180 days. You may reopen this issue if it has been closed in error.