diff --git a/src/controls.ts b/src/controls.ts index 3a39798c..32d33fc7 100644 --- a/src/controls.ts +++ b/src/controls.ts @@ -30,7 +30,6 @@ import { switchGameMode } from './packetsReplay/replayPackets' import { tabListState } from './react/PlayerListOverlayProvider' import { type ActionType, type ActionHoldConfig, type CustomAction } from './appConfig' - export const customKeymaps = proxy(appStorage.keybindings) subscribe(customKeymaps, () => { appStorage.keybindings = customKeymaps diff --git a/src/react/DebugOverlay.tsx b/src/react/DebugOverlay.tsx index 7b22c96a..8e42fd38 100644 --- a/src/react/DebugOverlay.tsx +++ b/src/react/DebugOverlay.tsx @@ -55,13 +55,6 @@ export default () => { const viewDegToMinecraft = (yaw) => yaw % 360 - 180 * (yaw < 0 ? -1 : 1) - const handleF3 = (e) => { - if (e.code === 'F3') { - miscUiState.showDebugHud = !miscUiState.showDebugHud - e.preventDefault() - } - } - const readPacket = (data, { name }, _buf, fullBuffer) => { if (fullBuffer) { const size = fullBuffer.byteLength @@ -107,7 +100,6 @@ export default () => { } } - document.addEventListener('keydown', handleF3) let update = 0 const packetsUpdateInterval = setInterval(() => { setPacketsString(`↓ ${received.current.count} (${(received.current.size / 1024).toFixed(2)} KB/s, ${getFixedFilesize(receivedTotal.current)}) ↑ ${sent.current.count}`) @@ -163,7 +155,6 @@ export default () => { }) return () => { - document.removeEventListener('keydown', handleF3) clearInterval(packetsUpdateInterval) clearInterval(freqUpdateInterval) clearInterval(notFrequentUpdateInterval)