mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-23 08:32:51 +00:00
fix(SettingsView): make backspace do nothing
This commit is contained in:
@@ -541,7 +541,7 @@ const SettingsView = memo(function SettingsView() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleKeyDown = (e: KeyboardEvent) => {
|
const handleKeyDown = (e: KeyboardEvent) => {
|
||||||
if (e.key === "Escape" || e.key === "Backspace") {
|
if (e.key === "Escape") {
|
||||||
if (showModal) {
|
if (showModal) {
|
||||||
playBackSound();
|
playBackSound();
|
||||||
setShowModal(null);
|
setShowModal(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user