{"action":"created","issue":{"url":"https://api.github.com/repos/kallisti-dev/hs-webdriver/issues/97","repository_url":"https://api.github.com/repos/kallisti-dev/hs-webdriver","labels_url":"https://api.github.com/repos/kallisti-dev/hs-webdriver/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/kallisti-dev/hs-webdriver/issues/97/comments","events_url":"https://api.github.com/repos/kallisti-dev/hs-webdriver/issues/97/events","html_url":"https://github.com/kallisti-dev/hs-webdriver/issues/97","id":171477564,"number":97,"title":"Add definitions for keys?","user":{"login":"neongreen","id":1523306,"avatar_url":"https://avatars.githubusercontent.com/u/1523306?v=3","gravatar_id":"","url":"https://api.github.com/users/neongreen","html_url":"https://github.com/neongreen","followers_url":"https://api.github.com/users/neongreen/followers","following_url":"https://api.github.com/users/neongreen/following{/other_user}","gists_url":"https://api.github.com/users/neongreen/gists{/gist_id}","starred_url":"https://api.github.com/users/neongreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neongreen/subscriptions","organizations_url":"https://api.github.com/users/neongreen/orgs","repos_url":"https://api.github.com/users/neongreen/repos","events_url":"https://api.github.com/users/neongreen/events{/privacy}","received_events_url":"https://api.github.com/users/neongreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-16T17:52:38Z","updated_at":"2016-08-31T10:09:22Z","closed_at":null,"body":"I have the following definitions:\r\n\r\n```\r\nbackspace, enter, escape :: Text\r\n(backspace, enter, escape) = (\"\\xE003\", \"\\xE007\", \"\\xE00C\")\r\n\r\nshift, control, alt, command :: Text\r\n(shift, control, alt, command) = (\"\\xE008\", \"\\xE009\", \"\\xE00A\", \"\\xE03D\")\r\n...\r\n```\r\n\r\nIt'd be useful to have a `.Keys` module (designed to be imported qualified) providing said definitions, to allow something like this:\r\n\r\n```\r\n    sendKeys (\"Some category\" <> K.enter) =<< select \".add-category\"\r\n```\r\n\r\nI can think of several alternatives to this:\r\n  * the definitions might be called like `enter_` and then there'd be no need for qualified imports\r\n  * there might be a `sendKeys'` function handling input of the form `foo{enter}bar{shift}` (or something like that)\r\n  * both things at once\r\n\r\nIf you want, I will make a pull request.\r\n\r\n(Also, the link in the description of `sendKeys` is broken.)"},"comment":{"url":"https://api.github.com/repos/kallisti-dev/hs-webdriver/issues/comments/243719618","html_url":"https://github.com/kallisti-dev/hs-webdriver/issues/97#issuecomment-243719618","issue_url":"https://api.github.com/repos/kallisti-dev/hs-webdriver/issues/97","id":243719618,"user":{"login":"neongreen","id":1523306,"avatar_url":"https://avatars.githubusercontent.com/u/1523306?v=3","gravatar_id":"","url":"https://api.github.com/users/neongreen","html_url":"https://github.com/neongreen","followers_url":"https://api.github.com/users/neongreen/followers","following_url":"https://api.github.com/users/neongreen/following{/other_user}","gists_url":"https://api.github.com/users/neongreen/gists{/gist_id}","starred_url":"https://api.github.com/users/neongreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neongreen/subscriptions","organizations_url":"https://api.github.com/users/neongreen/orgs","repos_url":"https://api.github.com/users/neongreen/repos","events_url":"https://api.github.com/users/neongreen/events{/privacy}","received_events_url":"https://api.github.com/users/neongreen/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T10:09:22Z","updated_at":"2016-08-31T10:09:22Z","body":"@CristhianMotoche The link opens a nearly empty README page for me. Luckily, archive.org has the original link archived: <https://web.archive.org/web/20160115155656/https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/value>.\r\n\r\nThe `sendKeys'` function would take a string, replace `{enter}`, `{up}`, etc. with corresponding escape characters, and send the result with `sendKeys`."}}
{"actor":{"display_login":"neongreen"}}