Revert "Merge pull request #765 from t3chguy/t3chguy/escape-closes-user-settings"

This reverts commit a29d8c2af2, reversing
changes made to 1d836c7d02.
This commit is contained in:
David Baker 2017-05-16 16:12:57 +01:00
parent ebfafb3639
commit 75eea89c08

View file

@ -107,18 +107,6 @@ export default React.createClass({
var handled = false;
switch (ev.keyCode) {
case KeyCode.ESCAPE:
// Implemented this way so possible handling for other pages is neater
switch (this.props.page_type) {
case PageTypes.UserSettings:
this.props.onUserSettingsClose();
handled = true;
break;
}
break;
case KeyCode.UP:
case KeyCode.DOWN:
if (ev.altKey && !ev.shiftKey && !ev.ctrlKey && !ev.metaKey) {