Merge pull request #1010 from penfold42/keyboard

Keyboard shortcuts to show/hide details panels
pull/1013/head
Mark Jessop 2025-06-09 17:14:44 +09:30 zatwierdzone przez GitHub
commit 94c76ab29d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -486,6 +486,24 @@
}
})
$(document).on('keydown', function(event) {
if (event.key === 't' || event.keyCode === 84) { // Check for 't'
$("#tableid").prop("open", function(index, value) {
return !value;
});
}
if (event.key === 's' || event.keyCode === 83) { // Check for 's'
$("#scanid").prop("open", function(index, value) {
return !value;
});
}
if (event.key === 'm' || event.keyCode === 77) { // Check for 'm'
$("#mapid_details").prop("open", function(index, value) {
return !value;
});
}
});
// Create Tabulator table.
table = new Tabulator("#telem_table", {
index:"realid",