mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
escape key to cancel search box
This commit is contained in:
parent
f2fb1836df
commit
3fb0c9883b
@ -42,6 +42,9 @@ module.exports = React.createClass({
|
||||
if (e.keyCode === 13) { // on enter...
|
||||
this.onSearch();
|
||||
}
|
||||
if (e.keyCode === 27) { // escape...
|
||||
this.props.onCancelClick();
|
||||
}
|
||||
},
|
||||
|
||||
onSearch: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user