disable escape and X button for glyph dialog