aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde2016-06-24 21:14:47 +0200
committerGitHub2016-06-24 21:14:47 +0200
commit06c6516604696c294df2e374ba8433efee54912c (patch)
treee981eca861f19bfe7779f1196c830e492a48670a
parent118f54aeeb3c2f67e721d261edf4f96dce7cf0d4 (diff)
parentf1e75527222b0e01e04c64db26e5f1e0a0017922 (diff)
downloadgodot-06c6516604696c294df2e374ba8433efee54912c.tar.gz
godot-06c6516604696c294df2e374ba8433efee54912c.tar.zst
godot-06c6516604696c294df2e374ba8433efee54912c.zip
-rw-r--r--scene/gui/line_edit.cpp3
-rw-r--r--scene/gui/text_edit.cpp12
2 files changed, 15 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index fc5e82d36..579a6e2f0 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -298,6 +298,9 @@ void LineEdit::_input_event(InputEvent p_event) {
}
case KEY_LEFT: {
+#ifndef APPLE_STYLE_KEYS
+ if (!k.mod.alt)
+#endif
shift_selection_check_pre(k.mod.shift);
#ifdef APPLE_STYLE_KEYS
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 9342d077e..6fd6137ac 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -2065,6 +2065,12 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
if (k.mod.shift)
_pre_shift_selection();
+#ifdef APPLE_STYLE_KEYS
+ else
+#else
+ else if (!k.mod.alt)
+#endif
+ deselect();
#ifdef APPLE_STYLE_KEYS
if (k.mod.command) {
@@ -2118,6 +2124,12 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
if (k.mod.shift)
_pre_shift_selection();
+#ifdef APPLE_STYLE_KEYS
+ else
+#else
+ else if (!k.mod.alt)
+#endif
+ deselect();
#ifdef APPLE_STYLE_KEYS
if (k.mod.command) {