aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/baggy/js/shortcuts/main.js
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-19 20:42:27 +0100
committerGitHub <noreply@github.com>2016-11-19 20:42:27 +0100
commit6f85bed294d6dd9f2dd9c945544074cbde38e191 (patch)
tree1ac2c526e54ddaf1678184f93d4e10a7a015349c /app/Resources/static/themes/baggy/js/shortcuts/main.js
parent27dce581caba158a8ffffa5bc30648a21f47da12 (diff)
parent995c204428dd6be04d2bff1d5e17f3e95268f44d (diff)
downloadwallabag-6f85bed294d6dd9f2dd9c945544074cbde38e191.tar.gz
wallabag-6f85bed294d6dd9f2dd9c945544074cbde38e191.tar.zst
wallabag-6f85bed294d6dd9f2dd9c945544074cbde38e191.zip
Merge pull request #2543 from wallabag/search-engine
Added a simple search engine
Diffstat (limited to 'app/Resources/static/themes/baggy/js/shortcuts/main.js')
-rw-r--r--app/Resources/static/themes/baggy/js/shortcuts/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Resources/static/themes/baggy/js/shortcuts/main.js b/app/Resources/static/themes/baggy/js/shortcuts/main.js
index e69de29b..aed09aee 100644
--- a/app/Resources/static/themes/baggy/js/shortcuts/main.js
+++ b/app/Resources/static/themes/baggy/js/shortcuts/main.js
@@ -0,0 +1,7 @@
1$(document).ready(() => {
2 Mousetrap.bind('s', () => {
3 $('#search').trigger('click');
4 $('#search_entry_term').focus();
5 return false;
6 });
7});