You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
allow Alt+arrow keys to pass through editor
This commit is contained in:
@@ -1360,6 +1360,7 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
if (k.mod.alt) {
|
if (k.mod.alt) {
|
||||||
|
scancode_handled=false;
|
||||||
break;
|
break;
|
||||||
} else if (k.mod.command) {
|
} else if (k.mod.command) {
|
||||||
#endif
|
#endif
|
||||||
@@ -1404,6 +1405,7 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
|||||||
} else if (k.mod.alt) {
|
} else if (k.mod.alt) {
|
||||||
#else
|
#else
|
||||||
if (k.mod.alt) {
|
if (k.mod.alt) {
|
||||||
|
scancode_handled=false;
|
||||||
break;
|
break;
|
||||||
} else if (k.mod.command) {
|
} else if (k.mod.command) {
|
||||||
#endif
|
#endif
|
||||||
@@ -1439,8 +1441,10 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
|||||||
|
|
||||||
if (k.mod.shift)
|
if (k.mod.shift)
|
||||||
_pre_shift_selection();
|
_pre_shift_selection();
|
||||||
if (k.mod.alt)
|
if (k.mod.alt) {
|
||||||
|
scancode_handled=false;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
#ifdef APPLE_STYLE_KEYS
|
#ifdef APPLE_STYLE_KEYS
|
||||||
if (k.mod.command)
|
if (k.mod.command)
|
||||||
cursor_set_line(0);
|
cursor_set_line(0);
|
||||||
@@ -1456,8 +1460,10 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
|||||||
|
|
||||||
if (k.mod.shift)
|
if (k.mod.shift)
|
||||||
_pre_shift_selection();
|
_pre_shift_selection();
|
||||||
if (k.mod.alt)
|
if (k.mod.alt) {
|
||||||
|
scancode_handled=false;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
#ifdef APPLE_STYLE_KEYS
|
#ifdef APPLE_STYLE_KEYS
|
||||||
if (k.mod.command)
|
if (k.mod.command)
|
||||||
cursor_set_line(text.size()-1);
|
cursor_set_line(text.size()-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user