List Box in Lazarus: Keyboard shortcut for double-click? lazarus / 21-General ---------------------------------------------------------------------- AMJF · 2021-05-04 21:06 I'm using Windows 10, but different apps require different keyboard shortcuts for double-clicking (like a mouse does), so I'm wondering what Lazarus/FPC apps use? ---------------------------------------------------------------------- AMJF · 2021-05-04 22:38 To elaborate, in my program with a TListBox, I find that using the up/down arrow keys is apparently the same as clicking on each item in the list box with the mouse, but sequentially. So I'm wondering if I can program in an option to double-click with the keyboard in the list box with, say, the Enter key? ---------------------------------------------------------------------- jamie · 2021-05-04 23:18 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  procedure TForm1.ListBox1DblClick(Sender: TObject);begin  beep;end; procedure TForm1.ListBox1KeyPress(Sender: TObject; var Key: char);begin  if Key = #13 then ListBox1DblClick(Sender);end; ---------------------------------------------------------------------- AMJF · 2021-05-05 01:32 The second procedure works fine, but do I need the "beep"? Seems to work without it. ---------------------------------------------------------------------- jamie · 2021-05-05 01:46 That's my brand! Do as you please with the beep!, its just there as a test! ---------------------------------------------------------------------- AMJF · 2021-05-05 02:50 Don't be offended, the tip is much appreciated. If the beep is for feedback, then in my case, I will know if it works, and it does. Thanks!