Merge branch 'master' into patch-1

This commit is contained in:
Reese
2020-09-14 09:13:43 -05:00
committed by GitHub

View File

@@ -1,5 +1,6 @@
window.onload = function() { window.onload = function() {
this.initBody(); this.initBody();
this.listenForSettings();
} }
@@ -390,3 +391,13 @@ function extractQuickLinks(passedSqrs) {
// Start the autocomplete // Start the autocomplete
autocomplete(document.getElementById("search-bar-input"), this.validQuickLinks); autocomplete(document.getElementById("search-bar-input"), this.validQuickLinks);
} }
// Listen to key click
function listenForSettings() {
document.onkeyup = event => {
// Show the settings if ctrl and , is pressed
if (event.ctrlKey && event.which == 188)
showSettings();
}
}