ide: Assist Enter/Tab behaviour changed once again

This commit is contained in:
Mirek Fidler 2024-11-06 16:20:25 +01:00
parent 82f7a16ead
commit f3c19e8a8c

View file

@ -1060,12 +1060,9 @@ bool AssistEditor::Key(dword key, int count)
return true;
}
}
if(findarg(key, K_ENTER, K_TAB) >= 0 && assist.IsCursor()) {
AssistInsert();
return true;
}
if(key == K_TAB && !assist.IsCursor() && assist.GetCount()) {
assist.GoBegin();
if(findarg(key, K_ENTER, K_TAB) >= 0 && assist.GetCount()) {
if(!assist.IsCursor())
assist.GoBegin();
AssistInsert();
return true;
}