Skip to content

Commit

Permalink
fix: hot key
Browse files Browse the repository at this point in the history
  • Loading branch information
Chkhikvadze committed Oct 10, 2023
1 parent eafab27 commit a6823aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 122 deletions.
137 changes: 17 additions & 120 deletions apps/server/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/ui/src/components/HeaderButtons/HeaderButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const HeaderButtons = () => {
<StyledButtonsWrapper>
{location.pathname.includes('/chat') && (
<Tooltip
content={() => <span>Focus: {isMacOS ? 'cmd+Shift+F' : 'Ctrl+Shift+F'}</span>}
content={() => <span>Focus: {isMacOS ? 'Ctrl+F' : 'Ctrl+Shift+F'}</span>}
position={Tooltip.positions.BOTTOM}
tooltipSize='small'
>
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/src/providers/LayoutProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const LayoutProvider = ({ children }: any) => {
setExpand(!expand)
}

const keyboardShortcut = isMacOS ? 'cmd+shift+f' : 'ctrl+shift+f'
const keyboardShortcut = 'ctrl+f' //isMacOS ? 'cmd+shift+f' : 'ctrl+shift+f'

useHotkeys(keyboardShortcut, commandFunction)

Expand Down

0 comments on commit a6823aa

Please sign in to comment.