[Mod Options] Prevent binding LMB for Mod Options view toggling
This commit is contained in:
parent
8eedda46c0
commit
b5122cd561
1 changed files with 5 additions and 0 deletions
|
@ -3362,6 +3362,11 @@ VMFOptionsView.callback_setting_keybind = function (self, widget_content)
|
|||
widget_content.first_pressed_button_index = nil
|
||||
widget_content.first_pressed_button_type = nil
|
||||
|
||||
-- Fix accidental LMB binding for Mod Options view toggling.
|
||||
if widget_content.setting_id == "open_vmf_options" and #widget_content.keys == 1 and widget_content.keys[1] == "mouse left" then
|
||||
widget_content.keys = {}
|
||||
end
|
||||
|
||||
set_new_keybind(widget_content)
|
||||
|
||||
self:callback_change_setting_keybind_state(widget_content)
|
||||
|
|
Loading…
Add table
Reference in a new issue