mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 18:46:16 +00:00
updated Test documentation and added a shortcut Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
14 lines
486 B
JavaScript
14 lines
486 B
JavaScript
document.addEventListener('keydown', function(event) {
|
|
// command+K or ctrl+K
|
|
if ((event.metaKey || event.ctrlKey) && event.key === 'k') {
|
|
event.preventDefault();
|
|
document.querySelector('.search-input, .search-field, input[name="q"]').focus();
|
|
}
|
|
|
|
// forward slash
|
|
if (event.key === '/' &&
|
|
!event.target.matches('input, textarea, select')) {
|
|
event.preventDefault();
|
|
document.querySelector('.search-input, .search-field, input[name="q"]').focus();
|
|
}
|
|
});
|