You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
change shortcut for toggle-comment to Ctrl+K
This commit is contained in:
@@ -1911,27 +1911,6 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
||||
|
||||
} break;
|
||||
|
||||
case KEY_K:{
|
||||
if (!k.mod.command || k.mod.shift || k.mod.alt) {
|
||||
scancode_handled=false;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
if (selection.active) {
|
||||
int ini = selection.from_line;
|
||||
int end = selection.to_line;
|
||||
for (int i=ini; i<= end; i++)
|
||||
{
|
||||
_insert_text(i,0,"#");
|
||||
}
|
||||
}
|
||||
else{
|
||||
_insert_text(cursor.line,0,"#");
|
||||
}
|
||||
update();
|
||||
}
|
||||
break;}
|
||||
|
||||
case KEY_U:{
|
||||
if (!k.mod.command || k.mod.shift || k.mod.alt) {
|
||||
scancode_handled=false;
|
||||
|
||||
Reference in New Issue
Block a user