Added escape key funtionality
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
[
|
||||
{
|
||||
"name": "NomBar",
|
||||
"description": "The Tastiest Chat around, get your fill today",
|
||||
"image": "https://munchy.impassivedev.com/images/icon.png",
|
||||
"url": "https://spacebar.nomchy-verse.com",
|
||||
"language": "en",
|
||||
"country": "US",
|
||||
"display": true,
|
||||
"contactInfo": {
|
||||
"dicord": "munchy420",
|
||||
"github": "https://tea.nomchy-verse.com/munchy",
|
||||
"email": "thedudedies22@gmail.com"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Spacebar",
|
||||
"description": "The official Spacebar instance.",
|
||||
@@ -30,5 +44,9 @@
|
||||
"github": "https://github.com/greysilly7",
|
||||
"email": "greysilly7@gmail.com"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Vanilla Minigames",
|
||||
"display": false
|
||||
}
|
||||
]
|
||||
|
@@ -6,8 +6,11 @@
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": "/channels/@me",
|
||||
"start_url": "https://chat.nomchy-verse.com/",
|
||||
"display": "standalone",
|
||||
"scope": "/",
|
||||
"theme_color": "#05050a",
|
||||
"description": "Welcome to the Jank Client, a spacebar FOSS client implementation",
|
||||
"background_color": "#05050a",
|
||||
"offline_enabled": true
|
||||
}
|
||||
|
@@ -1431,6 +1431,12 @@ class Settings extends Buttons {
|
||||
exit.onclick = (_) => {
|
||||
this.hide();
|
||||
};
|
||||
onkeyup = (event) => {
|
||||
if (event.key === "Escape") {
|
||||
// Cancel the default action, if needed
|
||||
this.hide()
|
||||
}
|
||||
}
|
||||
document.body.append(background);
|
||||
this.html = background;
|
||||
}
|
||||
|
Reference in New Issue
Block a user