diff --git a/modules/paint/paint_window.cpp b/modules/paint/paint_window.cpp index 3e2c9d676..37f593df4 100644 --- a/modules/paint/paint_window.cpp +++ b/modules/paint/paint_window.cpp @@ -112,7 +112,7 @@ void PaintWindow::_input(const Ref &event) { Ref iek = event; - if (iek.is_valid() && iek->is_pressed() & !iek->is_echo()) { + if (iek.is_valid() && iek->is_pressed() && !iek->is_echo()) { _handle_shortcuts(iek->get_scancode()); return; }