{"action":"opened","issue":{"url":"https://api.github.com/repos/kcsry/lippukala/issues/3","repository_url":"https://api.github.com/repos/kcsry/lippukala","labels_url":"https://api.github.com/repos/kcsry/lippukala/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kcsry/lippukala/issues/3/comments","events_url":"https://api.github.com/repos/kcsry/lippukala/issues/3/events","html_url":"https://github.com/kcsry/lippukala/issues/3","id":208625579,"number":3,"title":"POS: When using barcode scanners, ticket information might not get properly shown before enter prompt","user":{"login":"akx","id":58669,"avatar_url":"https://avatars.githubusercontent.com/u/58669?v=3","gravatar_id":"","url":"https://api.github.com/users/akx","html_url":"https://github.com/akx","followers_url":"https://api.github.com/users/akx/followers","following_url":"https://api.github.com/users/akx/following{/other_user}","gists_url":"https://api.github.com/users/akx/gists{/gist_id}","starred_url":"https://api.github.com/users/akx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akx/subscriptions","organizations_url":"https://api.github.com/users/akx/orgs","repos_url":"https://api.github.com/users/akx/repos","events_url":"https://api.github.com/users/akx/events{/privacy}","received_events_url":"https://api.github.com/users/akx/received_events","type":"User","site_admin":false},"labels":[{"id":30611905,"url":"https://api.github.com/repos/kcsry/lippukala/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-18T08:45:54Z","updated_at":"2017-02-18T08:45:54Z","closed_at":null,"body":"Something has changed in modern Chromes that causes the `prompt()` for committing a ticket usage to be shown before the UI in the background has a chance to update to show the ticket information.\r\n\r\nThis only manifests when using sufficiently fast input devices such as barcode scanners, or for debugging the issue, an AutoHotkey script like `CapsLock & C::Send 123123{Return}`.\r\n\r\n@japsu has hotfixed this in Kompassi by using `setTimeout`: https://github.com/tracon/kompassi/commit/282d0ca9b047291273b15300c61e6566be346e07#diff-edd209dab48c8dc758347b39388c940cR127\r\n\r\nMight be worth it to look into changing the `prompt` into something less intrusive, such as a DIY HTML prompt.\r\n"}}
{"actor":{"display_login":"akx"}}