Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods
This commit is contained in:
1 parent
c3f7465b7e
commit
97fecd1b69
58 files changed
+398
-398
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user