Changeset 340 for trunk/Start.pas


Ignore:
Timestamp:
Apr 2, 2021, 9:09:49 PM (3 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/Start.pas

    r339 r340  
    143143
    144144uses
    145   Global, Directories, Direct, ScreenTools, Inp, Back, Settings;
     145  Global, Directories, Direct, ScreenTools, Inp, Back, Settings, UKeyBindings;
    146146
    147147{$R *.lfm}
     
    17421742procedure TStartDlg.FormKeyDown(Sender: TObject; var Key: Word;
    17431743  Shift: TShiftState);
    1744 begin
    1745   if KeyToShortCut(Key, Shift) = VK_F1 then
     1744var
     1745  ShortCut: TShortCut;
     1746begin
     1747  ShortCut := KeyToShortCut(Key, Shift);
     1748  if BFullScreen.Test(ShortCut) then begin
     1749    FullScreen := not FullScreen;
     1750    UpdateInterface;
     1751    Background.UpdateInterface;
     1752  end else
     1753  if BHelp.Test(ShortCut) then
    17461754    DirectHelp(cStartHelp);
    17471755end;
Note: See TracChangeset for help on using the changeset viewer.