From 08bbc747463fdeee878c48ab60bde2198877f6d6 Mon Sep 17 00:00:00 2001 From: Vince Mitchell Date: Wed, 8 Nov 2017 09:29:55 -0500 Subject: [PATCH] add search shortcut --- docs/source/_assets/js/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/_assets/js/app.js b/docs/source/_assets/js/app.js index 068b4f79b..479579949 100644 --- a/docs/source/_assets/js/app.js +++ b/docs/source/_assets/js/app.js @@ -13,3 +13,9 @@ const app = new Vue({ Prism.highlightAll() anchors.options = { placement: 'left', class: 'text-slate-light' }; anchors.add(); + +document.onkeyup = function (e) { + if (e.which == 191) { + document.getElementById('docsearch').focus(); + } +}; \ No newline at end of file