mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-18 15:22:16 +00:00
close About Snapdrop page on Escape Keydown
This commit is contained in:
@@ -655,6 +655,13 @@ Events.on('load', () => {
|
||||
animate();
|
||||
});
|
||||
|
||||
// close About Snapdrop page on Escape
|
||||
window.addEventListener("keydown", (e) => {
|
||||
if (e.key === "Escape") {
|
||||
window.location.hash = '#';
|
||||
}
|
||||
});
|
||||
|
||||
Notifications.PERMISSION_ERROR = `
|
||||
Notifications permission has been blocked
|
||||
as the user has dismissed the permission prompt several times.
|
||||
|
||||
Reference in New Issue
Block a user