Commit 6721467
authored
fix: prevent the escape key from minimizing Safari (#265)
* fix: prevent the escape key from minimizing Safari
Safari uses the escape key as a shortcut for exiting full screen.
Stopping propagation is _not_ enough to prevent this behaviour. Use
`preventDefault` instead of `stopPropagation` to avoid messing with the
users' browser experience.
Closes: #264
* fix: stop propagation in addition to preventing default1 parent 74bdfb6 commit 6721467
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments