mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods
This commit is contained in:
parent
c3f7465b7e
commit
97fecd1b69
58 changed files with 398 additions and 398 deletions
|
@ -726,7 +726,7 @@ void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {
|
|||
Ref<InputEventMouseButton> mb = p_event;
|
||||
|
||||
if (mb.is_valid()) {
|
||||
if (mb->is_pressed() && mb->get_command()) {
|
||||
if (mb->is_pressed() && mb->is_command_pressed()) {
|
||||
if (mb->get_button_index() == MOUSE_BUTTON_WHEEL_UP) {
|
||||
_zoom_in();
|
||||
} else if (mb->get_button_index() == MOUSE_BUTTON_WHEEL_DOWN) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue