{"action":"created","issue":{"url":"https://api.github.com/repos/jordansissel/xdotool/issues/84","labels_url":"https://api.github.com/repos/jordansissel/xdotool/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/jordansissel/xdotool/issues/84/comments","events_url":"https://api.github.com/repos/jordansissel/xdotool/issues/84/events","html_url":"https://github.com/jordansissel/xdotool/issues/84","id":116451900,"number":84,"title":"xdotool sends 1 instead of !","user":{"login":"mpnolan","id":1238731,"avatar_url":"https://avatars.githubusercontent.com/u/1238731?v=3","gravatar_id":"","url":"https://api.github.com/users/mpnolan","html_url":"https://github.com/mpnolan","followers_url":"https://api.github.com/users/mpnolan/followers","following_url":"https://api.github.com/users/mpnolan/following{/other_user}","gists_url":"https://api.github.com/users/mpnolan/gists{/gist_id}","starred_url":"https://api.github.com/users/mpnolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpnolan/subscriptions","organizations_url":"https://api.github.com/users/mpnolan/orgs","repos_url":"https://api.github.com/users/mpnolan/repos","events_url":"https://api.github.com/users/mpnolan/events{/privacy}","received_events_url":"https://api.github.com/users/mpnolan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T00:21:28Z","updated_at":"2015-11-15T19:43:43Z","closed_at":null,"body":"Using openbox on Ubuntu Trusty. If I do a command like:\r\n\r\n    sleep 2; for wid in `xdotool search --class QtCreator`; do xdotool key --window $wid exclam; done\r\n\r\n...and click the window (QtCreator in this case), then the character \"1\" will show up in the window rather than !.\r\n\r\nThe results are mixed. I originally experienced this with a custom Qt-based browser application, but have seen these results so far:\r\nCustom browser (as noted): Shows 1\r\nQtCreator: Shows 1\r\nTea (editor): Shows !\r\ngedit: Nothing happens\r\nuxterm: Nothing happens\r\n\r\nIt seems to be due to the use of --window, as if I do `xdotool key exclam` on some of the windows above with the issue, it shows ! as expected.\r\n\r\nThere are other keys it happens for. I could make a list if it would be helpful.\r\n\r\nAny ideas on root cause or workarounds? I am running the latest from git.\r\nthanks...\r\n"},"comment":{"url":"https://api.github.com/repos/jordansissel/xdotool/issues/comments/156846291","html_url":"https://github.com/jordansissel/xdotool/issues/84#issuecomment-156846291","issue_url":"https://api.github.com/repos/jordansissel/xdotool/issues/84","id":156846291,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T19:43:43Z","updated_at":"2015-11-15T19:43:43Z","body":"I'm open to this being a bug in xdotool. When  I need to debug stuff like this, I run xev and have xdotool do whatever in that window. xev is a tool that lets you see all the X11 events going to the window. If you can capture a snapshot of the events that occur when you have xdotool send keystrokes to the xev window (using --window or a chained command to send it).\r\n\r\n(I don't have any X11 systems at present, but will in a few weeks, so I have to rely on your debugging a bit)"}}