Tab can now be used for selection of address from list, as well as adding a manual mxid or email address
This commit is contained in:
parent
2752d6b444
commit
2a8518b72b
2 changed files with 8 additions and 8 deletions
|
@ -55,7 +55,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
},
|
||||
|
||||
onKeyUpArrow: function() {
|
||||
onKeyUp: function() {
|
||||
if (this.state.selected > 0) {
|
||||
this.setState({
|
||||
selected: this.state.selected - 1,
|
||||
|
@ -64,7 +64,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
},
|
||||
|
||||
onKeyDownArrow: function() {
|
||||
onKeyDown: function() {
|
||||
if (this.state.selected < this._maxSelected(this.props.addressList)) {
|
||||
this.setState({
|
||||
selected: this.state.selected + 1,
|
||||
|
@ -73,7 +73,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
},
|
||||
|
||||
onKeyReturn: function() {
|
||||
onKeySelect: function() {
|
||||
this.selectAddress(this.state.selected);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue