You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #5379 from neikeq/pr-issue-5375
Fix weird deselection behaviour with text field
This commit is contained in:
@@ -298,6 +298,9 @@ void LineEdit::_input_event(InputEvent p_event) {
|
|||||||
}
|
}
|
||||||
case KEY_LEFT: {
|
case KEY_LEFT: {
|
||||||
|
|
||||||
|
#ifndef APPLE_STYLE_KEYS
|
||||||
|
if (!k.mod.alt)
|
||||||
|
#endif
|
||||||
shift_selection_check_pre(k.mod.shift);
|
shift_selection_check_pre(k.mod.shift);
|
||||||
|
|
||||||
#ifdef APPLE_STYLE_KEYS
|
#ifdef APPLE_STYLE_KEYS
|
||||||
|
|||||||
@@ -2065,6 +2065,12 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
|||||||
|
|
||||||
if (k.mod.shift)
|
if (k.mod.shift)
|
||||||
_pre_shift_selection();
|
_pre_shift_selection();
|
||||||
|
#ifdef APPLE_STYLE_KEYS
|
||||||
|
else
|
||||||
|
#else
|
||||||
|
else if (!k.mod.alt)
|
||||||
|
#endif
|
||||||
|
deselect();
|
||||||
|
|
||||||
#ifdef APPLE_STYLE_KEYS
|
#ifdef APPLE_STYLE_KEYS
|
||||||
if (k.mod.command) {
|
if (k.mod.command) {
|
||||||
@@ -2118,6 +2124,12 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
|||||||
|
|
||||||
if (k.mod.shift)
|
if (k.mod.shift)
|
||||||
_pre_shift_selection();
|
_pre_shift_selection();
|
||||||
|
#ifdef APPLE_STYLE_KEYS
|
||||||
|
else
|
||||||
|
#else
|
||||||
|
else if (!k.mod.alt)
|
||||||
|
#endif
|
||||||
|
deselect();
|
||||||
|
|
||||||
#ifdef APPLE_STYLE_KEYS
|
#ifdef APPLE_STYLE_KEYS
|
||||||
if (k.mod.command) {
|
if (k.mod.command) {
|
||||||
|
|||||||
Reference in New Issue
Block a user