Update files

This commit is contained in:
Mohamed Boudra
2026-02-05 18:00:09 +07:00
parent 9f479dd337
commit cb3cf1c209
7 changed files with 41 additions and 15 deletions
@@ -89,12 +89,19 @@ export function useGlobalKeyboardNav({
const key = event.key ?? "";
const lowerKey = key.toLowerCase();
if (key === "Alt") {
if (key === "Alt" && !event.shiftKey) {
useKeyboardNavStore.getState().setAltDown(true);
}
if (isTauri && (key === "Meta" || key === "Control")) {
if (isTauri && (key === "Meta" || key === "Control") && !event.shiftKey) {
useKeyboardNavStore.getState().setCmdOrCtrlDown(true);
}
// If shift is pressed while a modifier is held, hide the badges
if (key === "Shift") {
const state = useKeyboardNavStore.getState();
if (state.altDown || state.cmdOrCtrlDown) {
state.resetModifiers();
}
}
// Cmd+B: toggle sidebar
if (