Remove rightclick and fix a weird thing when you press tab

This commit is contained in:
Lncvrt committed 2025-08-06 22:49:48 -07:00
1 parent 8d941cff91
commit 9c0dc2db2d
2 files changed
+11 -1

No files matched your search

+4
View File
@@ -7,3 +7,7 @@ body {
::-webkit-scrollbar {
@apply hidden;
}
*:focus {
@apply outline-none;
}
+7 -1
View File
@@ -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}>