ProcessWire icon indicating copy to clipboard operation
ProcessWire copied to clipboard

Closing modals and panels with escape key

Open kalmarlansmuseum opened this issue 9 years ago • 3 comments

Would be handy if modals and panels could be closed with the escape key.

kalmarlansmuseum avatar Apr 26 '16 06:04 kalmarlansmuseum

There is an option (closeOnEscape=true) that you could set in your config.php. It's just not enabled per default. https://github.com/ryancramerdesign/ProcessWire/blob/f10bea0201bf4ae167230b8c4d69673759764898/wire/config.php#L943

But I don't know what's about panels right now.

yckart avatar Apr 30 '16 04:04 yckart

Thanks! That works great. The setting is not working for the panels.

kalmarlansmuseum avatar May 04 '16 08:05 kalmarlansmuseum

Lets keep this one open so I don't forget, as I've been meaning to add esc key to panels as a default behavior.

ryancramerdesign avatar May 04 '16 09:05 ryancramerdesign