IDE: Restore Ctrl-Enter shortcut in IdoOptionsDlg. Tweak the hint. Issue #40234.

This commit is contained in:
Juha 2024-11-16 20:55:59 +02:00
parent 94bd8f9aae
commit d15afa2c7e
2 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,7 @@ inherited IDEOptionsDialog: TIDEOptionsDialog
BorderSpacing.Bottom = 6
BorderSpacing.Around = 0
OKButton.Name = 'OKButton'
OKButton.Hint = '[Enter]'
OKButton.Hint = '[Enter,Ctrl+Enter]'
OKButton.DefaultCaption = True
HelpButton.Name = 'HelpButton'
HelpButton.Hint = '[F1]'

View File

@ -366,6 +366,11 @@ begin
CancelButtonClick(Sender);
Key := 0;
end
else if (Key = VK_RETURN) and (Shift = [ssCtrl]) then
begin
OkButtonClick(Sender);
Key := 0;
end
else if (Key = VK_RETURN) and (Shift = [ssShift]) then
begin
ApplyButtonClick(Sender);