Also prevent brace auto closing with ctrl when invoked directly

This commit is contained in:
Basile Burg 2018-07-03 14:42:37 +02:00
parent ef2ca016ff
commit 32e03e9a9b
1 changed files with 3 additions and 1 deletions

View File

@ -3458,7 +3458,8 @@ begin
autoClosePair(autoCloseSquareBracket); autoClosePair(autoCloseSquareBracket);
'(': showCallTips(false); '(': showCallTips(false);
')': if fCallTipWin.Visible then decCallTipsLvl; ')': if fCallTipWin.Visible then decCallTipsLvl;
'{': '{': if GetKeyShiftState <> [ssShift] then
begin
case fAutoCloseCurlyBrace of case fAutoCloseCurlyBrace of
autoCloseAlways: autoCloseAlways:
curlyBraceCloseAndIndent; curlyBraceCloseAndIndent;
@ -3473,6 +3474,7 @@ begin
curlyBraceCloseAndIndent; curlyBraceCloseAndIndent;
end; end;
end; end;
end;
end; end;
if fCompletion.IsActive then if fCompletion.IsActive then
fCompletion.CurrentString:=GetWordAtRowCol(LogicalCaretXY); fCompletion.CurrentString:=GetWordAtRowCol(LogicalCaretXY);