mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-03 15:32:53 +02:00
fixes #1302 keyboard shortcut / to filter plugins
This commit is contained in:
@@ -149,6 +149,13 @@ jQuery(document).ready(function() {
|
|||||||
|
|
||||||
/*Add the filter research*/
|
/*Add the filter research*/
|
||||||
jQuery( document ).ready(function () {
|
jQuery( document ).ready(function () {
|
||||||
|
document.onkeydown = function(e) {
|
||||||
|
if (e.keyCode == 58) {
|
||||||
|
jQuery(".pluginFilter input.search-input").focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
jQuery(".pluginFilter input").on("input", function() {
|
jQuery(".pluginFilter input").on("input", function() {
|
||||||
let text = jQuery(this).val().toLowerCase();
|
let text = jQuery(this).val().toLowerCase();
|
||||||
var searchNumber = 0;
|
var searchNumber = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user