fixed backspace keybind clear

This commit is contained in:
Issac332 2026-06-25 20:58:03 +03:00
parent 4092eb570d
commit d3548caeaa
2 changed files with 2 additions and 1 deletions

View file

@ -679,6 +679,8 @@ class Window_Settings
if key && (!Input.press?(Input::ACTION) || @accept_action)
if key != Input::key_from_name("Backspace")
Settings[@parameter][@selection] = KeyBind.key(key)
else
Settings[@parameter][@selection] = nil
end
@waiting_for_key = @settings_content.waiting_for_key = false
apply

View file

@ -182,7 +182,6 @@ class Window_Settings
# parameter setting
current_parameter = @content.get_current_parameter
old_val = current_parameter&.value
if Input.trigger?(Input::LEFT) || (Input.press?(Input::LEFT) && (@left_hold_timer >= 15))
@left_hold_timer -= 2
@content.parameter_left