When I test (or use) my ionic 2 app in the browser, if a modal is open and I hit the "esc" key of my keyboard, the modal dismisses.
I would like to control how my modal is dismissed with a function I can customize. Similarly to how I can customize back button actions for mobile platforms.
In other words, I would like to forward "esc" key hit event to my own function.
Any suggestion ?