diff options
| author | Teddy Wing | 2020-09-06 01:03:32 +0200 |
|---|---|---|
| committer | Teddy Wing | 2020-09-06 01:03:32 +0200 |
| commit | 0ed4100709475b8f53689091477d6df7f6f8c4b5 (patch) | |
| tree | a93803dd884ef1c33c9a80b4c35914a160d1a354 /netflix-esc.user.js | |
| parent | 4b2c8193c75bb7be3a9a02384626d4ab42e8f11b (diff) | |
| download | netflix-esc-0ed4100709475b8f53689091477d6df7f6f8c4b5.tar.bz2 | |
Allow <C-[> for Escape
Close the modal with either the Escape key or <C-[>.
Diffstat (limited to 'netflix-esc.user.js')
| -rw-r--r-- | netflix-esc.user.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/netflix-esc.user.js b/netflix-esc.user.js index b288233..0424e4e 100644 --- a/netflix-esc.user.js +++ b/netflix-esc.user.js @@ -24,7 +24,10 @@ document.addEventListener( 'keyup', function(e) { - if (e.key === 'Escape') { + if ( + e.key === 'Escape' + || (e.ctrlKey && e.key === '[') + ) { var close_button = document.querySelector( '[data-uia="previewModal-closebtn"] > [role="button"]' ); |
