Skip to content

Commit

Permalink
Hide modifier keys from mouse motion binding menu
Browse files Browse the repository at this point in the history
  • Loading branch information
addmix committed Aug 21, 2024
1 parent 74ff994 commit 27fdb5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/input_event_configuration_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ void InputEventConfigurationDialog::_set_event(const Ref<InputEvent> &p_event, c
autoremap_command_or_control_checkbox->set_pressed(mod->is_command_or_control_autoremap());
}

if (mm.is_valid()) {
show_mods = false;
}

if (k.is_valid()) {
show_key = true;
Key phys_key = k->get_physical_keycode();
Expand Down Expand Up @@ -111,7 +115,7 @@ void InputEventConfigurationDialog::_set_event(const Ref<InputEvent> &p_event, c
device_container->set_visible(show_device);
key_mode->set_visible(show_key);
location_container->set_visible(show_location);
additional_options_container->show();
additional_options_container->set_visible(show_mods or show_device or show_key or show_location);

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

syntax error: missing ')' before identifier 'or'

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

syntax error: missing ';' before identifier 'or'

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

'or': undeclared identifier

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

syntax error: missing ';' before identifier 'show_device'

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

syntax error: missing ';' before identifier 'or'

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

'or': undeclared identifier

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

syntax error: missing ';' before identifier 'show_key'

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

syntax error: missing ';' before identifier 'or'

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

'or': undeclared identifier

Check failure on line 118 in editor/input_event_configuration_dialog.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Editor (target=editor, tests=yes)

syntax error: missing ';' before identifier 'show_location'

// Update mode selector based on original key event.
Ref<InputEventKey> ko = p_original_event;
Expand Down

0 comments on commit 27fdb5e

Please sign in to comment.