mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
fixed backspace keybind clear
This commit is contained in:
parent
4092eb570d
commit
d3548caeaa
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue