diff --git a/react/src/components/dashboard/walletsNotariesList.js b/react/src/components/dashboard/walletsNotariesList.js
index 148eadd..ad1f805 100644
--- a/react/src/components/dashboard/walletsNotariesList.js
+++ b/react/src/components/dashboard/walletsNotariesList.js
@@ -15,6 +15,12 @@ class WalletsNotariesList extends React.Component {
Store.dispatch(displayNotariesModal(false));
}
+ handleKeydown(e) {
+ if (e.key === 'Escape') {
+ this.closeNotariesModal();
+ }
+ }
+
renderNotariesFetching() {
if (!this.props.ActiveCoin.notaries) {
return (
@@ -50,7 +56,7 @@ class WalletsNotariesList extends React.Component {
const notariesData = this.props.ActiveCoin.notaries ? this.props.ActiveCoin.notaries.notaries : null;
return (
-
+
this.handleKeydown(event) }>
diff --git a/react/src/components/dashboard/walletsTxInfo.js b/react/src/components/dashboard/walletsTxInfo.js
index 6e262d3..54ddf1b 100644
--- a/react/src/components/dashboard/walletsTxInfo.js
+++ b/react/src/components/dashboard/walletsTxInfo.js
@@ -23,6 +23,12 @@ class WalletsTxInfo extends React.Component {
}));
}
+ handleKeydown(e) {
+ if (e.key === 'Escape') {
+ this.toggleTxInfoModal();
+ }
+ }
+
render() {
if (this.props &&
this.props.ActiveCoin.showTransactionInfo &&
@@ -30,7 +36,7 @@ class WalletsTxInfo extends React.Component {
const txInfo = this.props.ActiveCoin.txhistory[this.props.ActiveCoin.showTransactionInfoTxIndex];
return (
-
+
this.handleKeydown(event) }>