payload: {"action":"created","issue":{"url":"https://api.github.com/repos/Rust-SDL2/rust-sdl2/issues/904","repository_url":"https://api.github.com/repos/Rust-SDL2/rust-sdl2","labels_url":"https://api.github.com/repos/Rust-SDL2/rust-sdl2/issues/904/labels{/name}","comments_url":"https://api.github.com/repos/Rust-SDL2/rust-sdl2/issues/904/comments","events_url":"https://api.github.com/repos/Rust-SDL2/rust-sdl2/issues/904/events","html_url":"https://github.com/Rust-SDL2/rust-sdl2/issues/904","id":473304749,"node_id":"MDU6SXNzdWU0NzMzMDQ3NDk=","number":904,"title":"How can I distinguish between lowercase uppercase keystroke?","user":{"login":"Bastczuak","id":50180188,"node_id":"MDQ6VXNlcjUwMTgwMTg4","avatar_url":"https://avatars2.githubusercontent.com/u/50180188?v=4","gravatar_id":"","url":"https://api.github.com/users/Bastczuak","html_url":"https://github.com/Bastczuak","followers_url":"https://api.github.com/users/Bastczuak/followers","following_url":"https://api.github.com/users/Bastczuak/following{/other_user}","gists_url":"https://api.github.com/users/Bastczuak/gists{/gist_id}","starred_url":"https://api.github.com/users/Bastczuak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bastczuak/subscriptions","organizations_url":"https://api.github.com/users/Bastczuak/orgs","repos_url":"https://api.github.com/users/Bastczuak/repos","events_url":"https://api.github.com/users/Bastczuak/events{/privacy}","received_events_url":"https://api.github.com/users/Bastczuak/received_events","type":"User","site_admin":false},"labels":[{"id":52446959,"node_id":"MDU6TGFiZWw1MjQ0Njk1OQ==","url":"https://api.github.com/repos/Rust-SDL2/rust-sdl2/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-26T11:05:13Z","updated_at":"2019-07-26T15:48:37Z","closed_at":null,"author_association":"NONE","body":"Hello guys,\r\n\r\nIs it possible to recognize if a letter key was pressed with or without shift (uppercase/lowercase)? Right now I found no information about that and I realized there are only Keycodes for Uppercase key letters. Or am I wrong?\r\n\r\n```rust\r\nfn main() {\r\n  let keycode = Keycode::A;\r\n  let key = keycode.name();\r\n  println!(\"{}\", key);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Rust-SDL2/rust-sdl2/issues/comments/515504640","html_url":"https://github.com/Rust-SDL2/rust-sdl2/issues/904#issuecomment-515504640","issue_url":"https://api.github.com/repos/Rust-SDL2/rust-sdl2/issues/904","id":515504640,"node_id":"MDEyOklzc3VlQ29tbWVudDUxNTUwNDY0MA==","user":{"login":"Cobrand","id":8882127,"node_id":"MDQ6VXNlcjg4ODIxMjc=","avatar_url":"https://avatars0.githubusercontent.com/u/8882127?v=4","gravatar_id":"","url":"https://api.github.com/users/Cobrand","html_url":"https://github.com/Cobrand","followers_url":"https://api.github.com/users/Cobrand/followers","following_url":"https://api.github.com/users/Cobrand/following{/other_user}","gists_url":"https://api.github.com/users/Cobrand/gists{/gist_id}","starred_url":"https://api.github.com/users/Cobrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cobrand/subscriptions","organizations_url":"https://api.github.com/users/Cobrand/orgs","repos_url":"https://api.github.com/users/Cobrand/repos","events_url":"https://api.github.com/users/Cobrand/events{/privacy}","received_events_url":"https://api.github.com/users/Cobrand/received_events","type":"User","site_admin":false},"created_at":"2019-07-26T15:48:37Z","updated_at":"2019-07-26T15:48:37Z","author_association":"MEMBER","body":"A keycode represents a physical key on your keyboard, but it does not represent a character. There is no alternative for uppercase and modifiers (such as alt). Otherwise you'd need an enum value for every character of UTF8.\r\n\r\nIt depends on what your method is:\r\n\r\n* If you are using https://docs.rs/sdl2/0.32.2/sdl2/keyboard/struct.KeyboardState.html#method.is_scancode_pressed , then Keycode::LShift and Keycode::RShift both exist.\r\n* If you are using the event pump, https://docs.rs/sdl2/0.32.2/sdl2/event/enum.Event.html KeyDown will give you a `Mod` attribute which you can use.\r\n* You can also use the TextInput utils, (if you only want to type text), thanks to https://docs.rs/sdl2/0.32.2/sdl2/keyboard/struct.TextInputUtil.html . Simply activate with `start`, watch the `TextInput` events from the event pump, and stop whenever it's necessary. This last method will allow you to catch every text that might be put in a normal text editor, so: pastes of text, different IME (chinese, japanese will both work), accents, special characters (on some keyboards Alt+e = €), ect. "}}
other: {"actor":{"display_login":"Cobrand"}}