Merge pull request #49612 from SpaghettiCoder01/49517-add-shift-backspace-support

Added InputMap entry for backspacing using Shift+Backspace
This commit is contained in:
Rémi Verschelde 2021-06-15 09:17:48 +02:00 committed by GitHub
commit 655516c758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -511,6 +511,7 @@ const OrderedHashMap<String, List<Ref<InputEvent>>> &InputMap::get_builtins() {
// Text Backspace and Delete
inputs = List<Ref<InputEvent>>();
inputs.push_back(InputEventKey::create_reference(KEY_BACKSPACE));
inputs.push_back(InputEventKey::create_reference(KEY_BACKSPACE | KEY_MASK_SHIFT));
default_builtin_cache.insert("ui_text_backspace", inputs);
inputs = List<Ref<InputEvent>>();