FIX: In find file dialog, remove conflicting keyboard accelerator "F" key from the "Selected directories and files" to let it to the more important "File mask".

FIX: Still in find file dialog, remove conflicting keyboard accelerator "E" key from the "Regular expression" to let it to the "Excluded files" that was used anyway since almost 7 years.
ADD: Still in find file dialog, add keyboard accelerator "U" key for the "Regular expression".
ADD: Still in find file dialog, add keyboard accelerator "M" key for the "Hexadecimal".
FIX: If nothing was selecting when launching the find file dialog, the "Selected directories and files" option was disabled. But we could accidentally re-enable it by toggling back and forth "Opened tabs" option. This has been fixed.
This commit is contained in:
Denis Bisson 2019-04-04 02:11:24 +00:00
commit 2d8550356b
3 changed files with 7 additions and 7 deletions

View file

@ -193,7 +193,7 @@ object frmFindDlg: TfrmFindDlg
Width = 169
Anchors = [akRight, akBottom]
BorderSpacing.Right = 6
Caption = 'Selected directories and &files'
Caption = 'Selected directories and files'
OnChange = cbSelectedFilesChange
TabOrder = 4
end
@ -504,7 +504,7 @@ object frmFindDlg: TfrmFindDlg
Top = 55
Width = 118
BorderSpacing.Left = 12
Caption = 'Regular &expression'
Caption = 'Reg&ular expression'
OnChange = cbTextRegExpChange
TabOrder = 5
end
@ -516,7 +516,7 @@ object frmFindDlg: TfrmFindDlg
Height = 19
Top = 79
Width = 88
Caption = 'Hexadecimal'
Caption = 'Hexadeci&mal'
OnChange = chkHexChange
TabOrder = 7
end

View file

@ -7,7 +7,7 @@
{"hash":49163891,"name":"tfrmfinddlg.lblexcludedirectories.caption","sourcebytes":[69,38,120,99,108,117,100,101,32,115,117,98,100,105,114,101,99,116,111,114,105,101,115],"value":"E&xclude subdirectories"},
{"hash":40753218,"name":"tfrmfinddlg.cmbexcludedirectories.hint","sourcebytes":[69,110,116,101,114,32,100,105,114,101,99,116,111,114,105,101,115,32,110,97,109,101,115,32,116,104,97,116,32,115,104,111,117,108,100,32,98,101,32,101,120,99,108,117,100,101,100,32,102,114,111,109,32,115,101,97,114,99,104,32,115,101,112,97,114,97,116,101,100,32,119,105,116,104,32,34,59,34],"value":"Enter directories names that should be excluded from search separated with \";\""},
{"hash":201746570,"name":"tfrmfinddlg.lblsearchdepth.caption","sourcebytes":[83,101,97,114,99,104,32,115,117,38,98,100,105,114,101,99,116,111,114,105,101,115,58],"value":"Search su&bdirectories:"},
{"hash":127255587,"name":"tfrmfinddlg.cbselectedfiles.caption","sourcebytes":[83,101,108,101,99,116,101,100,32,100,105,114,101,99,116,111,114,105,101,115,32,97,110,100,32,38,102,105,108,101,115],"value":"Selected directories and &files"},
{"hash":238646947,"name":"tfrmfinddlg.cbselectedfiles.caption","sourcebytes":[83,101,108,101,99,116,101,100,32,100,105,114,101,99,116,111,114,105,101,115,32,97,110,100,32,102,105,108,101,115],"value":"Selected directories and files"},
{"hash":187812819,"name":"tfrmfinddlg.cbopenedtabs.caption","sourcebytes":[79,112,101,110,101,100,32,116,97,98,115],"value":"Opened tabs"},
{"hash":5046979,"name":"tfrmfinddlg.gbfiles.caption","sourcebytes":[70,105,108,101,115],"value":"Files"},
{"hash":41260443,"name":"tfrmfinddlg.lblfindfilemask.caption","sourcebytes":[38,70,105,108,101,32,109,97,115,107],"value":"&File mask"},
@ -23,8 +23,8 @@
{"hash":22868708,"name":"tfrmfinddlg.cbnotcontainingtext.caption","sourcebytes":[70,105,110,100,32,102,105,108,101,115,32,78,38,79,84,32,99,111,110,116,97,105,110,105,110,103,32,116,104,101,32,116,101,120,116],"value":"Find files N&OT containing the text"},
{"hash":125468773,"name":"tfrmfinddlg.cbfindtext.caption","sourcebytes":[70,105,110,100,32,38,116,101,120,116,32,105,110,32,102,105,108,101],"value":"Find &text in file"},
{"hash":35720169,"name":"tfrmfinddlg.cbreplacetext.caption","sourcebytes":[82,101,38,112,108,97,99,101,32,98,121],"value":"Re&place by"},
{"hash":72913918,"name":"tfrmfinddlg.cbtextregexp.caption","sourcebytes":[82,101,103,117,108,97,114,32,38,101,120,112,114,101,115,115,105,111,110],"value":"Regular &expression"},
{"hash":183979276,"name":"tfrmfinddlg.chkhex.caption","sourcebytes":[72,101,120,97,100,101,99,105,109,97,108],"value":"Hexadecimal"},
{"hash":137727326,"name":"tfrmfinddlg.cbtextregexp.caption","sourcebytes":[82,101,103,38,117,108,97,114,32,101,120,112,114,101,115,115,105,111,110],"value":"Reg&ular expression"},
{"hash":259470556,"name":"tfrmfinddlg.chkhex.caption","sourcebytes":[72,101,120,97,100,101,99,105,38,109,97,108],"value":"Hexadeci&mal"},
{"hash":197676484,"name":"tfrmfinddlg.tsadvanced.caption","sourcebytes":[65,100,118,97,110,99,101,100],"value":"Advanced"},
{"hash":122109610,"name":"tfrmfinddlg.cbdatefrom.caption","sourcebytes":[38,68,97,116,101,32,102,114,111,109,58],"value":"&Date from:"},
{"hash":34324922,"name":"tfrmfinddlg.cbnotolderthan.caption","sourcebytes":[78,38,111,116,32,111,108,100,101,114,32,116,104,97,110,58],"value":"N&ot older than:"},

View file

@ -972,7 +972,7 @@ end;
{ TfrmFindDlg.cbOpenedTabsChange }
procedure TfrmFindDlg.cbOpenedTabsChange(Sender: TObject);
begin
cbSelectedFiles.Enabled := not cbOpenedTabs.Checked;
cbSelectedFiles.Enabled := not cbOpenedTabs.Checked AND (FSelectedFiles.Count > 0);
cbFollowSymLinks.Enabled := not cbOpenedTabs.Checked;
cmbFindPathStart.Enabled := not cbOpenedTabs.Checked;
end;