Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
reesericci authored Sep 14, 2020
2 parents 7f888c0 + c536886 commit 719be38
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
window.onload = function() {
this.initBody();
this.listenForSettings();
}


Expand Down Expand Up @@ -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();
}
}

0 comments on commit 719be38

Please sign in to comment.