{"action":"created","issue":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4608","labels_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4608/labels{/name}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4608/comments","events_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4608/events","html_url":"https://github.com/DynamoDS/Dynamo/pull/4608","id":83378077,"number":4608,"title":"InCanvasSearch: return focus to seach text box","user":{"login":"aosyatnik","id":8158404,"avatar_url":"https://avatars.githubusercontent.com/u/8158404?v=3","gravatar_id":"","url":"https://api.github.com/users/aosyatnik","html_url":"https://github.com/aosyatnik","followers_url":"https://api.github.com/users/aosyatnik/followers","following_url":"https://api.github.com/users/aosyatnik/following{/other_user}","gists_url":"https://api.github.com/users/aosyatnik/gists{/gist_id}","starred_url":"https://api.github.com/users/aosyatnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aosyatnik/subscriptions","organizations_url":"https://api.github.com/users/aosyatnik/orgs","repos_url":"https://api.github.com/users/aosyatnik/repos","events_url":"https://api.github.com/users/aosyatnik/events{/privacy}","received_events_url":"https://api.github.com/users/aosyatnik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T08:16:15Z","updated_at":"2015-06-01T14:16:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/4608","html_url":"https://github.com/DynamoDS/Dynamo/pull/4608","diff_url":"https://github.com/DynamoDS/Dynamo/pull/4608.diff","patch_url":"https://github.com/DynamoDS/Dynamo/pull/4608.patch"},"body":"### Purpose\r\n\r\nLink to YouTrack:\r\n[MAGN-7508](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-7508) Can't return to search after browsing menu items in context menu\r\n\r\nSolution to this bug is not close context menu, if original sender was TextBox.\r\nThis PR should be merged after https://github.com/DynamoDS/Dynamo/pull/4607\r\n\r\n### Declarations\r\n\r\nCheck these if you believe they are true\r\n\r\n- [x] The code base is in a better state after this PR\r\n- [x] The level of testing this PR includes is appropriate\r\n\r\n### Reviewers\r\n\r\n@pboyer \r\n@Benglin \r\n\r\n### FYIs\r\n\r\n@lillismith\r\n"},"comment":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/comments/107510781","html_url":"https://github.com/DynamoDS/Dynamo/pull/4608#issuecomment-107510781","issue_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4608","id":107510781,"user":{"login":"ramramps","id":8495197,"avatar_url":"https://avatars.githubusercontent.com/u/8495197?v=3","gravatar_id":"","url":"https://api.github.com/users/ramramps","html_url":"https://github.com/ramramps","followers_url":"https://api.github.com/users/ramramps/followers","following_url":"https://api.github.com/users/ramramps/following{/other_user}","gists_url":"https://api.github.com/users/ramramps/gists{/gist_id}","starred_url":"https://api.github.com/users/ramramps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramramps/subscriptions","organizations_url":"https://api.github.com/users/ramramps/orgs","repos_url":"https://api.github.com/users/ramramps/repos","events_url":"https://api.github.com/users/ramramps/events{/privacy}","received_events_url":"https://api.github.com/users/ramramps/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T14:16:51Z","updated_at":"2015-06-01T14:16:51Z","body":"@aosyatnik  - OnInCanvasSearchContextMenuKeyDown and OnInCanvasSearchContextMenuMouseUp - I belive you should use the Sender object and cast to Canvas, instead of using directly the view object. Any thoughts?\r\n\r\nOnCanvasClicked -  Why there is a check for Canvas == null? The canvas object is not used here. So, I dont see a point to check this. Also, if you click on the canvas, then canvas object should never be null. "}}