Recent

Author Topic: Option to print the Key mapping list?  (Read 1100 times)

jamie

  • Hero Member
  • *****
  • Posts: 973
Option to print the Key mapping list?
« 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..

ASerge

  • Hero Member
  • *****
  • Posts: 998
Re: Option to print the Key mapping list?
« Reply #1 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.

jamie

  • Hero Member
  • *****
  • Posts: 973
Re: Option to print the Key mapping list?
« Reply #2 on: January 29, 2018, 02:50:27 am »
I mite just do that.
 :D