mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Make agent titles regular and fix Cmd+B/Cmd+E hotkeys
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user