You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
completely missed the ESC check
I need sleep
This commit is contained in:
committed by
GitHub
parent
78e7272344
commit
360f1cd250
@@ -59,8 +59,10 @@ export default React.createClass({
|
|||||||
|
|
||||||
// Don't let key down events get any further, so they only trigger this and nothing more
|
// Don't let key down events get any further, so they only trigger this and nothing more
|
||||||
_onKeyDown: function(e) {
|
_onKeyDown: function(e) {
|
||||||
e.stopPropagation();
|
if (e.keyCode === KeyCode.ESCAPE) {
|
||||||
e.preventDefault();
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Must be when the key is released (and not pressed) otherwise componentWillUnmount
|
// Must be when the key is released (and not pressed) otherwise componentWillUnmount
|
||||||
|
|||||||
Reference in New Issue
Block a user