implement `hitting enter after Ctrl-K should switch to the first result`

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2018-06-16 08:42:28 +01:00
parent a25cdb6ce5
commit efaccf7344
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ var LeftPanel = React.createClass({
this._onMoveFocus(false); this._onMoveFocus(false);
handled = true; handled = true;
break; break;
case KeyCode.ENTER:
this._onMoveFocus(false);
this.focusedElement.click();
handled = true;
break;
} }
if (handled) { if (handled) {