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