{"action":"created","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3636","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3636/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3636/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3636/events","html_url":"https://github.com/codemirror/CodeMirror/pull/3636","id":116447073,"number":3636,"title":"change selected item in hint options on mousemove","user":{"login":"continuata","id":1593397,"avatar_url":"https://avatars.githubusercontent.com/u/1593397?v=3","gravatar_id":"","url":"https://api.github.com/users/continuata","html_url":"https://github.com/continuata","followers_url":"https://api.github.com/users/continuata/followers","following_url":"https://api.github.com/users/continuata/following{/other_user}","gists_url":"https://api.github.com/users/continuata/gists{/gist_id}","starred_url":"https://api.github.com/users/continuata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/continuata/subscriptions","organizations_url":"https://api.github.com/users/continuata/orgs","repos_url":"https://api.github.com/users/continuata/repos","events_url":"https://api.github.com/users/continuata/events{/privacy}","received_events_url":"https://api.github.com/users/continuata/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-11T23:48:58Z","updated_at":"2015-11-12T10:36:42Z","closed_at":"2015-11-12T10:36:42Z","pull_request":{"url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/3636","html_url":"https://github.com/codemirror/CodeMirror/pull/3636","diff_url":"https://github.com/codemirror/CodeMirror/pull/3636.diff","patch_url":"https://github.com/codemirror/CodeMirror/pull/3636.patch"},"body":"## Enhancement\r\n\r\n### Issue\r\ncurrently only cursor keys change the highlighted option and allow hitting Enter to select it.\r\nIf the user moves the mouse over the select box, there is no visual feedback (unless hover styling is applied) to show the option that will be selected when clicked. If hover styling is applied, 2 items in the list will be highlighted; the active one and the hovered one.\r\n\r\n### Solution\r\nthis PR allows the user to switch between keyboard and mouse navigation of the hint options by using the mouse move event to change the selected option."},"comment":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/comments/156065900","html_url":"https://github.com/codemirror/CodeMirror/pull/3636#issuecomment-156065900","issue_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3636","id":156065900,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T10:36:42Z","updated_at":"2015-11-12T10:36:42Z","body":"Yeah, that's what the first part of my response addressed -- you can disable the normal highlighting when the mouse is hovering over the widget using just CSS. But on closer inspection, that is not ideal. If the user tries to use the arrows while the mouse is still on the widget they wouldn't be able to see their selection.\r\n\r\nI tried out your patch, but I think it makes things more confusing. We're expecting a double click to select a completion, and controls that show a hover behavior like this seem to suggest that a single click is enough.\r\n\r\nSo I merged this as 5a6f158eedf and followed up with patch 1de8132, which only enables this behavior when `completeOnSingleClick` is on, but also makes that the default.\r\n"}}