janhq / jan

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer. Multiple engine support (llama.cpp, TensorRT-LLM)
https://jan.ai/
GNU Affero General Public License v3.0
23.81k stars 1.39k forks source link

fix: disabled shortcut create new thread on starter screen #4074

Closed urmauur closed 1 week ago

urmauur commented 1 week ago

Describe Your Changes

The Git diff shows that there have been some modifications made to the KeyListener.tsx file located in the web/containers/Providers directory. Here's a detailed description of the changes:

  1. Import Statement:

    • A new import statement for useStarterScreen has been added from '@/hooks/useStarterScreen'.
  2. Variable Declaration:

    • A new variable isShowStarterScreen is declared by destructuring from the useStarterScreen hook.
  3. UseEffect Dependency Update:

    • The dependency array of the useEffect hook has been updated to include the newly added isShowStarterScreen.
  4. Conditional Check in useEffect:

    • Inside the onKeyDown event handler, there is a conditional check to ensure that the isShowStarterScreen is false before proceeding with certain actions.

Fixes Issues

Self Checklist

github-actions[bot] commented 1 week ago

Barecheck - Code coverage report

Total: 69.26% Your code coverage diff: 0.00% ▴ ✅ All code changes are covered