Skip to content

Commit 8e3499a

Browse files
committed
Allow keyboard echo for script_editor/next_script, script_editor/prev_script, script_editor/window_move_up, and script_editor/window_move_down events
1 parent cb7cd81 commit 8e3499a

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
@@ -3441,7 +3441,7 @@ void ScriptEditor::input(const Ref<InputEvent> &p_event) {
34413441
void ScriptEditor::shortcut_input(const Ref<InputEvent> &p_event) {
34423442
ERR_FAIL_COND(p_event.is_null());
34433443

3444-
if (!is_visible_in_tree() || !p_event->is_pressed() || p_event->is_echo()) {
3444+
if (!is_visible_in_tree() || !p_event->is_pressed()) {
34453445
return;
34463446
}
34473447
if (ED_IS_SHORTCUT("script_editor/next_script", p_event)) {
@@ -3471,6 +3471,10 @@ void ScriptEditor::shortcut_input(const Ref<InputEvent> &p_event) {
34713471
accept_event();
34723472
}
34733473

3474+
if (p_event->is_echo()) {
3475+
return;
3476+
}
3477+
34743478
Callable custom_callback = EditorContextMenuPluginManager::get_singleton()->match_custom_shortcut(EditorContextMenuPlugin::CONTEXT_SLOT_SCRIPT_EDITOR, p_event);
34753479
if (custom_callback.is_valid()) {
34763480
Ref<Resource> resource;

0 commit comments

Comments
 (0)