summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-15 09:17:48 +0200
committerGitHub <noreply@github.com>2021-06-15 09:17:48 +0200
commit655516c7580bda855217369d879b165f65aec37e (patch)
tree05b9604f44ba305c14c4933c4b63b51292dba067 /core
parent4e582f9a7c8f049fceeb77e990900bd939b293f5 (diff)
parent5b81af09dc76541cd12f00b49ab5d1cec9ef7c83 (diff)
Merge pull request #49612 from SpaghettiCoder01/49517-add-shift-backspace-support
Added InputMap entry for backspacing using Shift+Backspace
Diffstat (limited to 'core')
-rw-r--r--core/input/input_map.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp
index 878ce820fb..5b96babe44 100644
--- a/core/input/input_map.cpp
+++ b/core/input/input_map.cpp
@@ -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>>();