mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
fix keyboard shortcut (ctrl + k) with empty categories (#177)
This commit is contained in:
parent
c229c9cb4a
commit
b2e14512b9
@ -40,6 +40,7 @@ export default function CommandMenu() {
|
||||
const down = (e: KeyboardEvent) => {
|
||||
if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
|
||||
e.preventDefault();
|
||||
fetchSortedCategories();
|
||||
setOpen((open) => !open);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user