Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrian Hayes
20,986 PointsSite feature/fix request: `esc` will close modal window with no way of getting it back.
What Just Happened to Me
I was just typing out a question for the forum, and as we all know this is done through a modal window. Now, I use a Mac with macOS Sierra, which includes an auto correct feature for text. The default way to tell it not to correct something when the little suggestion bubble pops up on the word you're typing is to hit esc
. So, I've gotten into the habit of doing this instead of using my mouse to click the "x" on the bubble.
The problem is that I was just about finished writing out my question when it popped up on something and I, by habit, hit esc
. Which sent my question away to nowheresville by closing the modal.
My feature Request
I would ask that a feature be added to bring up a "Are you sure you want to close this question? All data will be lost" dialogue when closing the window, either by the close button, or via the esc
key.
That, or allow for the question to auto-save as a draft as you update it.
Either way, I just don't think the modal window should be able to close with unpublished or saved user input content without at least having an "Are you Sure?" dialogue come up first to confirm.