Don't navigate when Backspace/Delete is pressed on the home screen (#2987)

This commit is contained in:
Frank Noirot
2024-07-11 07:50:59 -04:00
committed by GitHub
parent ff86e41283
commit 5fa1497b75
2 changed files with 28 additions and 0 deletions

View File

@ -57,6 +57,9 @@ const Home = () => {
kclManager.cancelAllExecutions()
}, [])
useHotkeys('backspace', (e) => {
e.preventDefault()
})
useHotkeys(
isTauri() ? 'mod+,' : 'shift+mod+,',
() => navigate(paths.HOME + paths.SETTINGS),