Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A humble suggestion, since you're on prettyfying mode :) #7

Closed
gcarreno opened this issue Mar 22, 2020 · 1 comment
Closed

A humble suggestion, since you're on prettyfying mode :) #7

gcarreno opened this issue Mar 22, 2020 · 1 comment

Comments

@gcarreno
Copy link
Collaborator

Hi there,

This is just something I do for Windows/Linux UX and I don't mind if you ignore me ;)

uses
  {...}LCLType,{...}

implementation

procedure MainForm.FormCreate(Sender: TObject);
begin
  InitShortCuts;
end;

procedure MainForm.InitShortcuts;
begin
  {$IFDEF LINUX}
    acFileExit.ShortCut := KeyToShortCut(VK_Q, [ssCtrl]);
  {$ENDIF}
  {$IFDEF WINDOWS}
    acFileExit.ShortCut := KeyToShortCut(VK_X, [ssAlt]);
  {$ENDIF}
  { TODO : Implement the equivalent for MacOS }
end;

Cheers,
Gus

P.S.: I've been greeting you with "Hi there" and don't even know your name :-)

wp-xyz added a commit that referenced this issue Mar 22, 2020
More general usage of shortcuts (GitHub issue #7)
Adjust LeftPanel.Constraints.MinWidth, but keep it resizable. Apply width stored in ini file.
Fix autosave feature blocking storing its own value in ini file.
@gcarreno
Copy link
Collaborator Author

Again, many thanks!! Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant