Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
fe3b9dbed2
1 changed files with 6 additions and 4 deletions
|
@ -82,24 +82,26 @@ var LeftPanel = React.createClass({
|
||||||
|
|
||||||
_onKeyDown: function(ev) {
|
_onKeyDown: function(ev) {
|
||||||
if (!this.focusedElement) return;
|
if (!this.focusedElement) return;
|
||||||
let handled = false;
|
let handled = true;
|
||||||
|
|
||||||
switch (ev.keyCode) {
|
switch (ev.keyCode) {
|
||||||
|
case KeyCode.TAB:
|
||||||
|
this._onMoveFocus(ev.shiftKey);
|
||||||
|
break;
|
||||||
case KeyCode.UP:
|
case KeyCode.UP:
|
||||||
this._onMoveFocus(true);
|
this._onMoveFocus(true);
|
||||||
handled = true;
|
|
||||||
break;
|
break;
|
||||||
case KeyCode.DOWN:
|
case KeyCode.DOWN:
|
||||||
this._onMoveFocus(false);
|
this._onMoveFocus(false);
|
||||||
handled = true;
|
|
||||||
break;
|
break;
|
||||||
case KeyCode.ENTER:
|
case KeyCode.ENTER:
|
||||||
this._onMoveFocus(false);
|
this._onMoveFocus(false);
|
||||||
if (this.focusedElement) {
|
if (this.focusedElement) {
|
||||||
this.focusedElement.click();
|
this.focusedElement.click();
|
||||||
}
|
}
|
||||||
handled = true;
|
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
handled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handled) {
|
if (handled) {
|
||||||
|
|
Loading…
Reference in a new issue