From 47989cae93fe5d294ed5773deb2d041942436796 Mon Sep 17 00:00:00 2001 From: Jowan-Spooner Date: Mon, 24 Feb 2025 19:44:07 +0100 Subject: [PATCH] Text Editor: Improve toggle comments shortcut --- .../Editor/TimelineEditor/TextEditor/timeline_editor_text.gd | 2 +- addons/dialogic/Editor/TimelineEditor/shortcut_popup.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/dialogic/Editor/TimelineEditor/TextEditor/timeline_editor_text.gd b/addons/dialogic/Editor/TimelineEditor/TextEditor/timeline_editor_text.gd index 57cf3fcdb..3ec26ee85 100644 --- a/addons/dialogic/Editor/TimelineEditor/TextEditor/timeline_editor_text.gd +++ b/addons/dialogic/Editor/TimelineEditor/TextEditor/timeline_editor_text.gd @@ -89,7 +89,7 @@ func _gui_input(event): if not event is InputEventKey: return if not event.is_pressed(): return match event.as_text(): - "Ctrl+K": + "Ctrl+K", "Ctrl+Slash": toggle_comment() # TODO clean this up when dropping 4.2 support diff --git a/addons/dialogic/Editor/TimelineEditor/shortcut_popup.gd b/addons/dialogic/Editor/TimelineEditor/shortcut_popup.gd index 694181fda..74c7baa35 100644 --- a/addons/dialogic/Editor/TimelineEditor/shortcut_popup.gd +++ b/addons/dialogic/Editor/TimelineEditor/shortcut_popup.gd @@ -28,7 +28,7 @@ var shortcuts := [ {"shortcut":"Ctrl+V", "text":"Paste"}, {"shortcut":"Ctrl+D", "text":"Duplicate selected events/lines"}, {"shortcut":"Ctrl+X", "text":"Cut selected events/lines"}, - {"shortcut":"Ctrl+#", "text":"Toggle Comment" , "editor":"TextEditor"}, + {"shortcut":"Ctrl+K", "text":"Toggle Comment" , "editor":"TextEditor"}, {"shortcut":"Delete", "text":"Delete events", "editor":"VisualEditor"}, {}, {"shortcut":"Ctrl+A", "text":"Select All"},