mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-21 06:19:56 +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.press?(Input::ACTION) || @accept_action)
|
||||||
if key != Input::key_from_name("Backspace")
|
if key != Input::key_from_name("Backspace")
|
||||||
Settings[@parameter][@selection] = KeyBind.key(key)
|
Settings[@parameter][@selection] = KeyBind.key(key)
|
||||||
|
else
|
||||||
|
Settings[@parameter][@selection] = nil
|
||||||
end
|
end
|
||||||
@waiting_for_key = @settings_content.waiting_for_key = false
|
@waiting_for_key = @settings_content.waiting_for_key = false
|
||||||
apply
|
apply
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,6 @@ class Window_Settings
|
||||||
|
|
||||||
# parameter setting
|
# parameter setting
|
||||||
current_parameter = @content.get_current_parameter
|
current_parameter = @content.get_current_parameter
|
||||||
old_val = current_parameter&.value
|
|
||||||
if Input.trigger?(Input::LEFT) || (Input.press?(Input::LEFT) && (@left_hold_timer >= 15))
|
if Input.trigger?(Input::LEFT) || (Input.press?(Input::LEFT) && (@left_hold_timer >= 15))
|
||||||
@left_hold_timer -= 2
|
@left_hold_timer -= 2
|
||||||
@content.parameter_left
|
@content.parameter_left
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue