diff --git a/src/components/setting/mods/controller-viewer.tsx b/src/components/setting/mods/controller-viewer.tsx index a7b6ac6..b4ac94f 100644 --- a/src/components/setting/mods/controller-viewer.tsx +++ b/src/components/setting/mods/controller-viewer.tsx @@ -65,7 +65,9 @@ export const ControllerViewer = forwardRef((props, ref) => { sx={{ width: 175 }} value={secret} placeholder={t("Recommended")} - onChange={(e) => setSecret(e.target.value)} + onChange={(e) => + setSecret(e.target.value?.replace(/[^\x00-\x7F]/g, "")) + } />