summaryrefslogtreecommitdiff
path: root/src/components/modals/Modal.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-03 17:53:03 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:56 +0200
commit81e517002bfdfbcd75109c562d890a27d190889b (patch)
treed69171040b5b9bfd45bfa4a51427a2138ffe9ea4 /src/components/modals/Modal.js
parent17ae0a3fafd806a5a533bf1d51a3ac708a8cf978 (diff)
Convert map movement to keyboard-based navigation
Diffstat (limited to 'src/components/modals/Modal.js')
-rw-r--r--src/components/modals/Modal.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/modals/Modal.js b/src/components/modals/Modal.js
index 193746b3..6eebfb6e 100644
--- a/src/components/modals/Modal.js
+++ b/src/components/modals/Modal.js
@@ -42,6 +42,9 @@ class Modal extends React.Component {
if (this.visible) {
this.props.onCancel();
}
+ })
+ .on("keydown", e => {
+ e.stopPropagation();
});
}