Minor tweaks/fixes for the Command Palette

This commit is contained in:
Michael Alexsander 2021-08-15 19:35:23 -03:00
parent 01675eb75a
commit 9819be7562
3 changed files with 59 additions and 53 deletions

View file

@ -32,7 +32,7 @@
#include "core/os/keyboard.h"
void Shortcut::set_event(const Ref<InputEvent> &p_event) {
ERR_FAIL_COND(Object::cast_to<InputEventShortcut>(*p_event));
ERR_FAIL_COND_MSG(Object::cast_to<InputEventShortcut>(*p_event), "Cannot set a shortcut event to an instance of InputEventShortcut.");
event = p_event;
emit_changed();
}