Add Enter as alternate key to complete code

This commit is contained in:
kobewi 2021-05-03 19:28:59 +02:00
parent eb57dcdb90
commit 76903d2c44

View file

@ -474,6 +474,7 @@ const OrderedHashMap<String, List<Ref<InputEvent>>> &InputMap::get_builtins() {
inputs = List<Ref<InputEvent>>();
inputs.push_back(InputEventKey::create_reference(KEY_TAB));
inputs.push_back(InputEventKey::create_reference(KEY_ENTER));
default_builtin_cache.insert("ui_text_completion_accept", inputs);
// Newlines