1
0
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:
Dana Olson
2014-12-17 15:57:39 -05:00
parent bed3b7f092
commit 1a6628f5a3
2 changed files with 1 additions and 22 deletions

View File

@@ -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;