Skip to content

Commit 1618f6d

Browse files
Text Editor: Improve toggle comments shortcut (#2541)
1 parent 69c2a0c commit 1618f6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addons/dialogic/Editor/TimelineEditor/TextEditor/timeline_editor_text.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func _gui_input(event):
8989
if not event is InputEventKey: return
9090
if not event.is_pressed(): return
9191
match event.as_text():
92-
"Ctrl+K":
92+
"Ctrl+K", "Ctrl+Slash":
9393
toggle_comment()
9494

9595
# TODO clean this up when dropping 4.2 support

addons/dialogic/Editor/TimelineEditor/shortcut_popup.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var shortcuts := [
2828
{"shortcut":"Ctrl+V", "text":"Paste"},
2929
{"shortcut":"Ctrl+D", "text":"Duplicate selected events/lines"},
3030
{"shortcut":"Ctrl+X", "text":"Cut selected events/lines"},
31-
{"shortcut":"Ctrl+#", "text":"Toggle Comment" , "editor":"TextEditor"},
31+
{"shortcut":"Ctrl+K", "text":"Toggle Comment" , "editor":"TextEditor"},
3232
{"shortcut":"Delete", "text":"Delete events", "editor":"VisualEditor"},
3333
{},
3434
{"shortcut":"Ctrl+A", "text":"Select All"},

0 commit comments

Comments
 (0)