Lazarus

Using the Lazarus IDE => Editor => Topic started by: jamie on January 28, 2018, 02:06:54 am

Title: Option to print the Key mapping list?
Post by: jamie on January 28, 2018, 02:06:54 am
 It would be nice to be able to print out the key mapping list so I could reference the short cuts
like a cheat sheet..

  Optionally print out only those you are interested in or all of them..

  it's easier for me to have a quick up to date shortcut cheat sheet card in front of me than wandering
through the pile of options in the OPTIONS menu to find it..
Title: Re: Option to print the Key mapping list?
Post by: ASerge on January 28, 2018, 03:50:29 am
It would be nice to be able to print out the key mapping list so I could reference the short cuts
like a cheat sheet..
Open file ..\Lazarus\ide\frames\editor_keymapping_options.pas.
Add some button, for example PrintButton.
Save file.
Add code for it:
Code: Pascal  [Select][+][-]
  1. procedure TEditorKeymappingOptionsFrame.PrintButtonClick(Sender: TObject);
  2. var
  3.   L: TStringStream;
  4. begin
  5.   L := TStringStream.Create('');
  6.   try
  7.     TreeView.SaveToStream(L);
  8.     Clipboard.AsText := L.DataString;
  9.   finally
  10.     L.Free;
  11.   end;
  12.   ShowMessage('Tree in clipboard');
  13. end;
  14.  
Rebuild IDE.
Title: Re: Option to print the Key mapping list?
Post by: jamie on January 29, 2018, 02:50:27 am
I mite just do that.
 :D
TinyPortal © 2005-2018