Browse Source

Add shortcut to go to header search

Alan Lam 3 years ago
parent
commit
54a5ae20a1
1 changed files with 6 additions and 0 deletions
  1. 6 0
      public/js/app.js

+ 6 - 0
public/js/app.js

@@ -85,4 +85,10 @@ $(() => {
 	}
 	}
 
 
 	toastr.options.positionClass = "toast-bottom-right";
 	toastr.options.positionClass = "toast-bottom-right";
+
+	$(window).on("keyup", event => {
+		if(event.ctrlKey && event.key === "/") {
+			$("#header-search").trigger("focus");
+		}
+	});
 });
 });