{"action":"created","issue":{"url":"https://api.github.com/repos/ticki/termion/issues/16","repository_url":"https://api.github.com/repos/ticki/termion","labels_url":"https://api.github.com/repos/ticki/termion/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ticki/termion/issues/16/comments","events_url":"https://api.github.com/repos/ticki/termion/issues/16/events","html_url":"https://github.com/ticki/termion/issues/16","id":143153025,"number":16,"title":"Support more special keys","user":{"login":"gyscos","id":564903,"avatar_url":"https://avatars.githubusercontent.com/u/564903?v=3","gravatar_id":"","url":"https://api.github.com/users/gyscos","html_url":"https://github.com/gyscos","followers_url":"https://api.github.com/users/gyscos/followers","following_url":"https://api.github.com/users/gyscos/following{/other_user}","gists_url":"https://api.github.com/users/gyscos/gists{/gist_id}","starred_url":"https://api.github.com/users/gyscos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyscos/subscriptions","organizations_url":"https://api.github.com/users/gyscos/orgs","repos_url":"https://api.github.com/users/gyscos/repos","events_url":"https://api.github.com/users/gyscos/events{/privacy}","received_events_url":"https://api.github.com/users/gyscos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ticki/termion/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ticki/termion/labels/feature","name":"feature","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-03-24T05:06:57Z","updated_at":"2016-07-15T03:00:07Z","closed_at":null,"body":"Keys F1-F12 (and more on some keyboards) are not currently properly handled.\r\nThe Shift/Ctrl variants may be tougher to get right."},"comment":{"url":"https://api.github.com/repos/ticki/termion/issues/comments/232848485","html_url":"https://github.com/ticki/termion/issues/16#issuecomment-232848485","issue_url":"https://api.github.com/repos/ticki/termion/issues/16","id":232848485,"user":{"login":"IGI-111","id":7190144,"avatar_url":"https://avatars.githubusercontent.com/u/7190144?v=3","gravatar_id":"","url":"https://api.github.com/users/IGI-111","html_url":"https://github.com/IGI-111","followers_url":"https://api.github.com/users/IGI-111/followers","following_url":"https://api.github.com/users/IGI-111/following{/other_user}","gists_url":"https://api.github.com/users/IGI-111/gists{/gist_id}","starred_url":"https://api.github.com/users/IGI-111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IGI-111/subscriptions","organizations_url":"https://api.github.com/users/IGI-111/orgs","repos_url":"https://api.github.com/users/IGI-111/repos","events_url":"https://api.github.com/users/IGI-111/events{/privacy}","received_events_url":"https://api.github.com/users/IGI-111/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T03:00:07Z","updated_at":"2016-07-15T03:00:07Z","body":"For comparison, Rustbox does this with a `Key` enum where the `char`s are uppercase when shift is pressed. Which is fair for most usages, but isn't really a solution to multiple modifier presses: detecting good old Escape-Meta-Alt-Control-Shift might be hard but it's fine as it is for a lot of usages.\r\n\r\n```rust\r\npub enum Key {\r\n    Tab,\r\n    Enter,\r\n    Esc,\r\n    Backspace,\r\n    Right,\r\n    Left,\r\n    Up,\r\n    Down,\r\n    Delete,\r\n    Insert,\r\n    Home,\r\n    End,\r\n    PageUp,\r\n    PageDown,\r\n    Char(char),\r\n    Ctrl(char),\r\n    F(u32),\r\n    Unknown(u16),\r\n}\r\n```\r\n\r\nNote that it might also be nice to return a value through `Unknown(u16)` instead of the current `Invalid` if the user wants to deal with special escape codes or something."}}
{"actor":{"display_login":"IGI-111"}}