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

View File

@@ -402,10 +402,7 @@ const styles = StyleSheet.create((theme) => ({
agentTitle: {
flex: 1,
fontSize: theme.fontSize.base,
fontWeight: {
xs: "400",
md: "300",
},
fontWeight: "400",
color: theme.colors.foreground,
opacity: 0.8,
},

View File

@@ -269,7 +269,7 @@ const styles = StyleSheet.create((theme) => ({
},
title: {
fontSize: theme.fontSize.base,
fontWeight: theme.fontWeight.normal,
fontWeight: "400",
},
subtitle: {
fontSize: theme.fontSize.sm,

View File

@@ -644,10 +644,7 @@ const styles = StyleSheet.create((theme) => ({
agentTitle: {
flex: 1,
fontSize: theme.fontSize.base,
fontWeight: {
xs: "400",
md: "300",
},
fontWeight: "400",
color: theme.colors.foreground,
opacity: 0.8,
},

View File

@@ -31,7 +31,6 @@ export function useGlobalKeyboardNav({
const shouldHandle = () => {
if (typeof document === "undefined") return false;
if (document.visibilityState !== "visible") return false;
if (!document.hasFocus()) return false;
return true;
};
@@ -86,7 +85,10 @@ export function useGlobalKeyboardNav({
}
// Cmd+B: toggle sidebar
if ((event.metaKey || event.ctrlKey) && lowerKey === "b") {
if (
(event.metaKey || event.ctrlKey) &&
(event.code === "KeyB" || lowerKey === "b")
) {
event.preventDefault();
toggleAgentList();
return;
@@ -97,7 +99,7 @@ export function useGlobalKeyboardNav({
selectedAgentId &&
toggleFileExplorer &&
(event.metaKey || event.ctrlKey) &&
lowerKey === "e"
(event.code === "KeyE" || lowerKey === "e")
) {
event.preventDefault();
toggleFileExplorer();