{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/289","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/289/comments","events_url":"https://api.github.com/repos/angular/material2/issues/289/events","html_url":"https://github.com/angular/material2/issues/289","id":147160468,"number":289,"title":"Service for handling keyboard vs. mouse focus behavior","user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material2/labels/a11y","name":"a11y","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/material2/milestones/4","html_url":"https://github.com/angular/material2/milestones/before%20beta","labels_url":"https://api.github.com/repos/angular/material2/milestones/4/labels","id":1609182,"number":4,"title":"before beta","description":null,"creator":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":3,"state":"open","created_at":"2016-02-27T03:51:48Z","updated_at":"2016-04-12T00:21:45Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-09T20:20:16Z","updated_at":"2016-04-12T00:23:32Z","closed_at":null,"body":"Currently, we always show a focus effect on the button component, when there was no mouse event the last `100ms`.\r\n\r\nThis is really hard-coded and there are bugs. For example, switching browser tabs, is restoring focus and showing the focus-effect (should not happen).\r\n\r\nA service for interaction, which detects the last interaction type would solve that issue very elegant and would be also helpful for other components.\r\n\r\nI also implemented that in Material 1 (still pending after re-submit) and I would like to implement it in Material 2 as well.\r\n\r\nSo let me know if you need this, and I will implement it :)"},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/208637246","html_url":"https://github.com/angular/material2/issues/289#issuecomment-208637246","issue_url":"https://api.github.com/repos/angular/material2/issues/289","id":208637246,"user":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T00:23:32Z","updated_at":"2016-04-12T00:23:32Z","body":"@DevVersion yeah, this would be nice to have. I think the better solution is to set a flag on `touchstart` / `mousedown` and use on the `focus` event. Is that what your approach in ng1 did?"}}