TDirectoryEdit - Open Dialog with Keyboard lazarus / 31-LCL ---------------------------------------------------------------------- OLLI_S · 2019-03-09 22:42 Hello, I am using Lazarus 2.0.0 in Windows 10 Professional x64. On my form I have a TDirectoryEdit control and it is working fine. The only problem is that the button after the edit-field can not be focused with the keyboard (with the key) and that no other keyboard shortcuts are working. So is there a way to focus the button behind the edit field with the tab key? Best regards OLLI ---------------------------------------------------------------------- ASerge · 2019-03-10 03:09 Quote from: OLLI_S on March 09, 2019, 11:42:44 pmThe only problem is that the button after the edit-field can not be focused with the keyboard (with the key) and that no other keyboard shortcuts are working. So is there a way to focus the button behind the edit field with the tab key? I doubt it, considering it's is the TSpeedButton. It may be easier to assign hotkeys? 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 uses LCLType; type  TDirectoryEditHelper = class helper for TDirectoryEdit    procedure DoButtonClick; inline;  end; procedure TDirectoryEditHelper.DoButtonClick;begin  ButtonClick;end; procedure TForm1.DirectoryEdit1KeyDown(Sender: TObject; var Key: Word;  Shift: TShiftState);begin  // Same as internal hot keys for the TComboBox  if ((Key = VK_F4) and (Shift = [])) or ((Key = VK_DOWN) and (Shift = [ssAlt])) then    (Sender as TDirectoryEdit).DoButtonClick;end;