{"action":"closed","issue":{"url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/issues/487","labels_url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/issues/487/comments","events_url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/issues/487/events","html_url":"https://github.com/Virtual-TreeView/Virtual-TreeView/issues/487","id":55023298,"number":487,"title":"When OnAddToSelection is called, GetFirstSelected returns nil","user":{"login":"vincentparrett","id":1037262,"avatar_url":"https://avatars.githubusercontent.com/u/1037262?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentparrett","html_url":"https://github.com/vincentparrett","followers_url":"https://api.github.com/users/vincentparrett/followers","following_url":"https://api.github.com/users/vincentparrett/following{/other_user}","gists_url":"https://api.github.com/users/vincentparrett/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentparrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentparrett/subscriptions","organizations_url":"https://api.github.com/users/vincentparrett/orgs","repos_url":"https://api.github.com/users/vincentparrett/repos","events_url":"https://api.github.com/users/vincentparrett/events{/privacy}","received_events_url":"https://api.github.com/users/vincentparrett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"joachimmarder","id":10615289,"avatar_url":"https://avatars.githubusercontent.com/u/10615289?v=3","gravatar_id":"","url":"https://api.github.com/users/joachimmarder","html_url":"https://github.com/joachimmarder","followers_url":"https://api.github.com/users/joachimmarder/followers","following_url":"https://api.github.com/users/joachimmarder/following{/other_user}","gists_url":"https://api.github.com/users/joachimmarder/gists{/gist_id}","starred_url":"https://api.github.com/users/joachimmarder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachimmarder/subscriptions","organizations_url":"https://api.github.com/users/joachimmarder/orgs","repos_url":"https://api.github.com/users/joachimmarder/repos","events_url":"https://api.github.com/users/joachimmarder/events{/privacy}","received_events_url":"https://api.github.com/users/joachimmarder/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/milestones/2","html_url":"https://github.com/Virtual-TreeView/Virtual-TreeView/milestones/Version%206.1","labels_url":"https://api.github.com/repos/Virtual-TreeView/Virtual-TreeView/milestones/2/labels","id":1032394,"number":2,"title":"Version 6.1","description":null,"creator":{"login":"joachimmarder","id":10615289,"avatar_url":"https://avatars.githubusercontent.com/u/10615289?v=3","gravatar_id":"","url":"https://api.github.com/users/joachimmarder","html_url":"https://github.com/joachimmarder","followers_url":"https://api.github.com/users/joachimmarder/followers","following_url":"https://api.github.com/users/joachimmarder/following{/other_user}","gists_url":"https://api.github.com/users/joachimmarder/gists{/gist_id}","starred_url":"https://api.github.com/users/joachimmarder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachimmarder/subscriptions","organizations_url":"https://api.github.com/users/joachimmarder/orgs","repos_url":"https://api.github.com/users/joachimmarder/repos","events_url":"https://api.github.com/users/joachimmarder/events{/privacy}","received_events_url":"https://api.github.com/users/joachimmarder/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":8,"state":"open","created_at":"2015-03-21T22:12:17Z","updated_at":"2015-05-04T20:02:25Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-21T14:11:08Z","updated_at":"2015-05-04T20:02:25Z","closed_at":"2015-05-04T20:02:25Z","body":"_From [obo...@gmail.com](https://code.google.com/u/106032102435612578952/) on October 10, 2014 00:54:17_\n\nHello,\r\n\r\nI am using r712 on Windows 7 SP1 and I have noticed a strange behavior when moving between nodes using the keyboard.\r\nI have plugged the OnAddToSelection event and I am using the GetFirstSelected/GetNextSelected construct to get the nodes that are selected.\r\nHowever, when the newly selected node (parameter to OnAddToSelection) does not come up in the GetFirstSelected iteration.\r\n\r\nIf I use the mouse and the OnFocusChanged event, I do get the appropriate enumeration with GetFirstSelected.\r\n\r\nSo right now, I can have a valid selection with the mouse, but I'm stuck when using the keyboard.\r\n\r\nI have attached a small sample application that shows the behavior, please let me know if I missed something obvious.\n\n**Attachment:** [keyboard selection.zip](http://code.google.com/p/virtual-treeview/issues/detail?id=487)\n\n_Original issue: http://code.google.com/p/virtual-treeview/issues/detail?id=487_"}}