Merge pull request #1 from thedudedies21/master

In Master Branch, Added in the ability to press the "Escape" Keyboard key to exit settings menu, and added more details to the manifest.json to allow for a more native feel on the app experience on ios (potentially android too but untested)
This commit is contained in:
Munchy 2025-03-17 16:57:47 -04:00 committed by GitHub
commit 40f4619675
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 1 deletions

View file

@ -31,4 +31,4 @@
"email": "greysilly7@gmail.com"
}
}
]
]

View file

@ -8,6 +8,9 @@
],
"start_url": "/channels/@me",
"display": "standalone",
"scope": "/",
"theme_color": "#05050a",
"description": "Welcome to the Jank Client, a spacebar FOSS client implementation",
"background_color": "#05050a",
"offline_enabled": true
}

View file

@ -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;
}