Close modal with esc (#10929)

* added var to check if modal is open and an if for escape fullview

* moved showconfirmmodal to utils, showconfirmmodal now uses showmodal, esc works in textinput

* made esc global
This commit is contained in:
Patrick O'Carroll
2018-02-16 09:14:32 +01:00
committed by Torkel Ödegaard
parent 2c5f3fbc5b
commit 244ae555d9
5 changed files with 80 additions and 134 deletions
+1
View File
@@ -150,6 +150,7 @@
"mobx-state-tree": "^1.3.1",
"moment": "^2.18.1",
"mousetrap": "^1.6.0",
"mousetrap-global-bind": "^1.1.0",
"perfect-scrollbar": "^1.2.0",
"prop-types": "^15.6.0",
"react": "^16.2.0",