Fix Esc to close

This commit is contained in:
2022-02-05 00:11:59 +01:00
parent 2f5c7cde58
commit 65e290b160
3 changed files with 5 additions and 4 deletions

View File

@ -21,7 +21,7 @@ const Home: NextPage = () => {
}
};
return (<main onKeyDown={hideModalOnEsc}>
return (<main onKeyDown={hideModalOnEsc} tabIndex={-1}>
<Head>
<title>c0ntroller.de</title>
</Head>