Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Just prefer closing modals with the escape key.
Proposed resolution
Capture the keydown event and close the modal.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#8 | close_overlay_with-2484439-8.patch | 875 bytes | joelpittet |
#8 | interdiff.txt | 827 bytes | joelpittet |
#6 | close_overlay_with-2484439-6.patch | 832 bytes | joelpittet |
#1 | close_overlay_with-2484439-1.patch | 814 bytes | joelpittet |
Comments
Comment #1
joelpittetHere's a patch with that working.
Comment #2
joelpittetComment #3
subhojit777Thanks for the patch :) I was also thinking about the same.
Comment #4
joelpittetDoes it work for you?
Comment #5
subhojit777I have not tested the code yet. Will do it soon. Thanks!
Comment #6
joelpittetre-roll with latest dev changes.
Comment #7
subhojit777Thank you :) Just a small change.
Can you please add a function description here.
Comment #8
joelpittetFeel free to write what you want for the comment.
Comment #10
subhojit777Committed, thanks!