Ignore:
Timestamp:
Apr 2, 2021, 9:09:49 PM (4 years ago)
Author:
chronos
Message:
  • Added: Support for F11 full screen switch key in Start dialog.
  • Fixed: Allow F1 and F11 key in Start dialog even if listbox is focused.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/BaseWin.pas

    r317 r340  
    8787end;
    8888
    89 
    9089constructor TBufferedDrawDlg.Create(AOwner: TComponent);
    9190begin
     
    112111procedure TBufferedDrawDlg.FormClose(Sender: TObject; var Action: TCloseAction);
    113112begin
    114   if FWindowMode = wmPersistent then
    115   begin
     113  if FWindowMode = wmPersistent then begin
    116114    UserLeft := Left;
    117     UserTop := Top
     115    UserTop := Top;
    118116  end;
    119117  if OffscreenUser = self then
     
    131129  Shift: TShiftState);
    132130begin
    133   if Key = VK_ESCAPE then
    134   begin
     131  if Key = VK_ESCAPE then begin
    135132    if fsModal in FormState then
    136       ModalResult := mrCancel
    137   end
    138   else if Key = VK_RETURN then
    139   begin
     133      ModalResult := mrCancel;
     134  end else
     135  if Key = VK_RETURN then begin
    140136    if fsModal in FormState then
    141       ModalResult := mrOK
    142   end
    143   else if Key = VK_F1 then begin
     137      ModalResult := mrOK;
     138  end else
     139  if Key = VK_F1 then begin
    144140    if Assigned(ShowNewContentProc) then
    145141      ShowNewContentProc(FWindowMode or wmPersistent, HelpContext);
    146   end else if FWindowMode = wmPersistent then begin
     142  end else
     143  if FWindowMode = wmPersistent then begin
    147144    if Assigned(MainFormKeyDown) then
    148145      MainFormKeyDown(Sender, Key, Shift);
Note: See TracChangeset for help on using the changeset viewer.