{"action":"created","issue":{"url":"https://api.github.com/repos/DaveDavenport/rofi/issues/167","repository_url":"https://api.github.com/repos/DaveDavenport/rofi","labels_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/167/comments","events_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/167/events","html_url":"https://github.com/DaveDavenport/rofi/issues/167","id":78265117,"number":167,"title":"Catch 'KeyRelease' event if the entry was selected by pressing 'Return'","user":{"login":"foxxx0","id":3109156,"avatar_url":"https://avatars.githubusercontent.com/u/3109156?v=3","gravatar_id":"","url":"https://api.github.com/users/foxxx0","html_url":"https://github.com/foxxx0","followers_url":"https://api.github.com/users/foxxx0/followers","following_url":"https://api.github.com/users/foxxx0/following{/other_user}","gists_url":"https://api.github.com/users/foxxx0/gists{/gist_id}","starred_url":"https://api.github.com/users/foxxx0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foxxx0/subscriptions","organizations_url":"https://api.github.com/users/foxxx0/orgs","repos_url":"https://api.github.com/users/foxxx0/repos","events_url":"https://api.github.com/users/foxxx0/events{/privacy}","received_events_url":"https://api.github.com/users/foxxx0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/DaveDavenport/rofi/milestones/3","html_url":"https://github.com/DaveDavenport/rofi/milestones/0.15.5","labels_url":"https://api.github.com/repos/DaveDavenport/rofi/milestones/3/labels","id":1083849,"number":3,"title":"0.15.5","description":"","creator":{"login":"DaveDavenport","id":406245,"avatar_url":"https://avatars.githubusercontent.com/u/406245?v=3","gravatar_id":"","url":"https://api.github.com/users/DaveDavenport","html_url":"https://github.com/DaveDavenport","followers_url":"https://api.github.com/users/DaveDavenport/followers","following_url":"https://api.github.com/users/DaveDavenport/following{/other_user}","gists_url":"https://api.github.com/users/DaveDavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveDavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveDavenport/subscriptions","organizations_url":"https://api.github.com/users/DaveDavenport/orgs","repos_url":"https://api.github.com/users/DaveDavenport/repos","events_url":"https://api.github.com/users/DaveDavenport/events{/privacy}","received_events_url":"https://api.github.com/users/DaveDavenport/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":15,"state":"closed","created_at":"2015-04-26T09:50:33Z","updated_at":"2016-05-26T13:09:44Z","due_on":"2015-05-29T22:00:00Z","closed_at":"2015-06-10T13:44:15Z"},"comments":5,"created_at":"2015-05-19T21:52:44Z","updated_at":"2016-05-31T20:26:06Z","closed_at":null,"body":"If you select an entry with the 'Return' key rofi will start processing on the 'KeyPress' event an leave the 'KeyRelease' on the stdin buffer.\r\n\r\nThis produces some quite annoying side effects e.g. when rofi is used to fill out forms in a web browser. For example: The roundcube webinterface listens to KeyUp events and somehow jumps from the username field to the password field if it catches such an event.\r\n\r\nAfter having a quick look through the source code I would suggest the following:\r\n* handle 'Return' separatly from 'Control+j', 'Control+m' and 'KP_Enter'\r\n* if the key from the 'KeyPress' event was 'Return' wait for the corresponding 'KeyRelease' event and THEN continue processing\r\n\r\nThis would be quite a nice fix that removes some definitely unwanted behaviour.\r\n\r\n\r\nA fix would be greatly appreciated, thanks in advance."},"comment":{"url":"https://api.github.com/repos/DaveDavenport/rofi/issues/comments/222809359","html_url":"https://github.com/DaveDavenport/rofi/issues/167#issuecomment-222809359","issue_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/167","id":222809359,"user":{"login":"carnager","id":3321178,"avatar_url":"https://avatars.githubusercontent.com/u/3321178?v=3","gravatar_id":"","url":"https://api.github.com/users/carnager","html_url":"https://github.com/carnager","followers_url":"https://api.github.com/users/carnager/followers","following_url":"https://api.github.com/users/carnager/following{/other_user}","gists_url":"https://api.github.com/users/carnager/gists{/gist_id}","starred_url":"https://api.github.com/users/carnager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carnager/subscriptions","organizations_url":"https://api.github.com/users/carnager/orgs","repos_url":"https://api.github.com/users/carnager/repos","events_url":"https://api.github.com/users/carnager/events{/privacy}","received_events_url":"https://api.github.com/users/carnager/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T20:26:06Z","updated_at":"2016-05-31T20:26:06Z","body":"for completeness:\r\n`-kb-accept-entry \\!Return` fixes this behavior"}}
{"actor":{"display_login":"carnager"}}