concept dialog in category svelte
appears as: dialogs, dialog, dialog, A dialog

This is an excerpt from Manning's book Svelte and Sapper in Action.
Listening for
keypressevents is deprecated but still supported (see http://mng.bz/6QKA). The proposed alternative is to listen forbeforeinputevents. However, at the time of writing those are not supported by Firefox. Another way of implementing a masked input that does not rely onkeypressevents can be found at http://mng.bz/oPyp.
let dialog = null;