mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01:00
Close menu when trigger shortcut
This commit is contained in:
parent
8428ca232c
commit
91ee0da8ef
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ function Shortcuts() {
|
||||||
const { path } = formattedShortcuts[index];
|
const { path } = formattedShortcuts[index];
|
||||||
if (path) {
|
if (path) {
|
||||||
navigate(path);
|
navigate(path);
|
||||||
|
menuRef.current?.closeMenu?.();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue