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:
commit
40f4619675
3 changed files with 10 additions and 1 deletions
|
@ -31,4 +31,4 @@
|
|||
"email": "greysilly7@gmail.com"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue