Compare as boolean.

This commit is contained in:
Relintai 2022-06-11 20:57:03 +02:00
parent 38ff41c893
commit f0ac767970

View File

@ -112,7 +112,7 @@ void PaintWindow::_input(const Ref<InputEvent> &event) {
Ref<InputEventKey> 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;
}