mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
👨🔧 fix: recognize command+click on macos (#2786)
Fixes an issue where the "command+click" was not being recognized on MacOS. The desired behavior was working fine on Windows using "ctrl+click", but the MacOS equivalent was broken. This was preventing new tabs from opening while holding "command" (meta key) on MacOS and clicking. I verified this change fixes the issue by building locally and testing.
This commit is contained in:
parent
f0e8cca5df
commit
af8bcb08d6
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ export default function Conversation({ conversation, retainView, toggleNav, isLa
|
|||
const [isPopoverActive, setIsPopoverActive] = useState(false);
|
||||
|
||||
const clickHandler = async (event: React.MouseEvent<HTMLAnchorElement>) => {
|
||||
if (event.button === 0 && event.ctrlKey) {
|
||||
if (event.button === 0 && (event.ctrlKey || event.metaKey)) {
|
||||
toggleNav();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue