Remove rightclick and fix a weird thing when you press tab
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -7,3 +7,7 @@ body {
|
||||
::-webkit-scrollbar {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
*:focus {
|
||||
@apply outline-none;
|
||||
}
|
||||
+7
-1
@@ -1,6 +1,6 @@
|
||||
'use client'
|
||||
|
||||
import React from 'react'
|
||||
import React, { useEffect } from 'react'
|
||||
import './Globals.css'
|
||||
import { Ubuntu } from 'next/font/google'
|
||||
|
||||
@@ -10,6 +10,12 @@ const ubuntu = Ubuntu({
|
||||
})
|
||||
|
||||
const Layout = ({ children }: { children: React.ReactNode }) => {
|
||||
useEffect(() => {
|
||||
const handler = (e: MouseEvent) => e.preventDefault()
|
||||
document.addEventListener('contextmenu', handler)
|
||||
return () => document.removeEventListener('contextmenu', handler)
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<>
|
||||
<html lang='en' className={ubuntu.className}>
|
||||
|
||||
Reference in new issue
Block a user