Merge branch 'master' into patch-1
This commit is contained in:
11
js/main.js
11
js/main.js
@@ -1,5 +1,6 @@
|
||||
window.onload = function() {
|
||||
this.initBody();
|
||||
this.listenForSettings();
|
||||
}
|
||||
|
||||
|
||||
@@ -390,3 +391,13 @@ function extractQuickLinks(passedSqrs) {
|
||||
// Start the autocomplete
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user