Skip to content

Commit 0b47123

Browse files
committed
Merge pull request #111542 from sockeye-d/script-editor-allow-echo
Allow keyboard echo for ScriptEditor tab manipulation events
2 parents 9554c2b + 8e3499a commit 0b47123

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

editor/script/script_editor_plugin.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3445,7 +3445,7 @@ void ScriptEditor::input(const Ref<InputEvent> &p_event) {
34453445
void ScriptEditor::shortcut_input(const Ref<InputEvent> &p_event) {
34463446
ERR_FAIL_COND(p_event.is_null());
34473447

3448-
if (!is_visible_in_tree() || !p_event->is_pressed() || p_event->is_echo()) {
3448+
if (!is_visible_in_tree() || !p_event->is_pressed()) {
34493449
return;
34503450
}
34513451
if (ED_IS_SHORTCUT("script_editor/next_script", p_event)) {
@@ -3475,6 +3475,10 @@ void ScriptEditor::shortcut_input(const Ref<InputEvent> &p_event) {
34753475
accept_event();
34763476
}
34773477

3478+
if (p_event->is_echo()) {
3479+
return;
3480+
}
3481+
34783482
Callable custom_callback = EditorContextMenuPluginManager::get_singleton()->match_custom_shortcut(EditorContextMenuPlugin::CONTEXT_SLOT_SCRIPT_EDITOR, p_event);
34793483
if (custom_callback.is_valid()) {
34803484
Ref<Resource> resource;

0 commit comments

Comments
 (0)