Make agent titles regular and fix Cmd+B/Cmd+E hotkeys

This commit is contained in:
Mohamed Boudra
2026-02-04 11:13:48 +07:00
parent 49a9fdeabc
commit 1e2fbb04ff
4 changed files with 8 additions and 12 deletions
+1 -4
View File
@@ -402,10 +402,7 @@ const styles = StyleSheet.create((theme) => ({
agentTitle: { agentTitle: {
flex: 1, flex: 1,
fontSize: theme.fontSize.base, fontSize: theme.fontSize.base,
fontWeight: { fontWeight: "400",
xs: "400",
md: "300",
},
color: theme.colors.foreground, color: theme.colors.foreground,
opacity: 0.8, opacity: 0.8,
}, },
@@ -269,7 +269,7 @@ const styles = StyleSheet.create((theme) => ({
}, },
title: { title: {
fontSize: theme.fontSize.base, fontSize: theme.fontSize.base,
fontWeight: theme.fontWeight.normal, fontWeight: "400",
}, },
subtitle: { subtitle: {
fontSize: theme.fontSize.sm, fontSize: theme.fontSize.sm,
@@ -644,10 +644,7 @@ const styles = StyleSheet.create((theme) => ({
agentTitle: { agentTitle: {
flex: 1, flex: 1,
fontSize: theme.fontSize.base, fontSize: theme.fontSize.base,
fontWeight: { fontWeight: "400",
xs: "400",
md: "300",
},
color: theme.colors.foreground, color: theme.colors.foreground,
opacity: 0.8, opacity: 0.8,
}, },
@@ -31,7 +31,6 @@ export function useGlobalKeyboardNav({
const shouldHandle = () => { const shouldHandle = () => {
if (typeof document === "undefined") return false; if (typeof document === "undefined") return false;
if (document.visibilityState !== "visible") return false; if (document.visibilityState !== "visible") return false;
if (!document.hasFocus()) return false;
return true; return true;
}; };
@@ -86,7 +85,10 @@ export function useGlobalKeyboardNav({
} }
// Cmd+B: toggle sidebar // Cmd+B: toggle sidebar
if ((event.metaKey || event.ctrlKey) && lowerKey === "b") { if (
(event.metaKey || event.ctrlKey) &&
(event.code === "KeyB" || lowerKey === "b")
) {
event.preventDefault(); event.preventDefault();
toggleAgentList(); toggleAgentList();
return; return;
@@ -97,7 +99,7 @@ export function useGlobalKeyboardNav({
selectedAgentId && selectedAgentId &&
toggleFileExplorer && toggleFileExplorer &&
(event.metaKey || event.ctrlKey) && (event.metaKey || event.ctrlKey) &&
lowerKey === "e" (event.code === "KeyE" || lowerKey === "e")
) { ) {
event.preventDefault(); event.preventDefault();
toggleFileExplorer(); toggleFileExplorer();