View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002272 | Double Commander | Logic | public | 2019-03-28 01:31 | 2024-09-17 09:17 |
| Reporter | CryHam | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Projection | none | ETA | none | ||
| Product Version | 1.0.0 (trunk) | Product Build | r8755 | ||
| Summary | 0002272: [patch] Options Hotkeys Filter - search also by hotkeys string | ||||
| Description | I find it very useful. E.g. If I want to find a command by entering shortcut e.g. Ctrl+D. Or to find all commands used with e.g. F1 (any modifiers). I did also 2 other things here: - Changed keys for actions (actNextCategory) using + and - to PgDn and PgUp, so I can actually write + in filter. - Changed the hotkey colors from Red to default. For me it is annoying, since I have black background, I can't see it well. Commented it out: //if not ( Patch done on svn rev 8755. | ||||
| Tags | No tags attached. | ||||
| Attached Files | foptionshotkeys.patch (2,770 bytes)
Index: src/frames/foptionshotkeys.lfm
===================================================================
--- src/frames/foptionshotkeys.lfm (revision 8755)
+++ src/frames/foptionshotkeys.lfm (working copy)
@@ -383,12 +383,12 @@
object actPreviousCategory: TAction
Caption = 'Previous category'
OnExecute = actPreviousCategoryExecute
- ShortCut = 109
+ ShortCut = 33
end
object actNextCategory: TAction
Caption = 'Next category'
OnExecute = actNextCategoryExecute
- ShortCut = 107
+ ShortCut = 34
end
object actSortByCommand: TAction
Caption = 'Sort by command name'
Index: src/frames/foptionshotkeys.pas
===================================================================
--- src/frames/foptionshotkeys.pas (revision 8755)
+++ src/frames/foptionshotkeys.pas (working copy)
@@ -312,7 +312,7 @@
if Cells[aCol, aRow] <> '' then
begin
OffsetY := (DefaultRowHeight - Canvas.TextHeight(Cells[aCol, aRow])) div 2;
- if not (gdSelected in aState) then Canvas.Font.Color := clRed else Canvas.Font.Color := clWhite;
+ //if not (gdSelected in aState) then Canvas.Font.Color := clRed else Canvas.Font.Color := clWhite;
Canvas.TextOut(aRect.Left + 3, aRect.Top + OffsetY, Cells[aCol, aRow]);
end;
end;
@@ -622,7 +622,7 @@
lstr: string;
i, j: integer;
HMForm: THMForm;
- sForm: string;
+ sForm,sHotKeys: string;
CommandsFormClass: TComponentClass;
CommandsForm: TComponent = nil;
CommandsFormCreated: boolean = False;
@@ -668,8 +668,23 @@
begin
lstr := UTF8LowerCase(Filter);
for i := pred(slAllCommands.Count) downto 0 do //Remove from our list the commands that does not meet our filter...
- if (UTF8Pos(lstr, UTF8LowerCase(slAllCommands.Strings[i])) = 0) and (UTF8Pos(lstr, UTF8LowerCase(CommandsIntf.GetCommandCaption(slAllCommands.Strings[i], cctLong))) = 0) then
+ begin
+ // hotkeys string
+ sHotKeys:='';
+ if Assigned(HMForm) then
+ begin
+ slTmp.Clear;
+ GetHotKeyList(HMForm, slAllCommands.Strings[i], slTmp);
+ if (slTmp.Count > 0) then
+ for j := 0 to pred(slTmp.Count) do
+ sHotKeys:= sHotKeys + ShortcutsToText(slTmp[j].Shortcuts) + ';';
+ end;
+
+ if (UTF8Pos(lstr, UTF8LowerCase(sHotKeys)) = 0) and
+ (UTF8Pos(lstr, UTF8LowerCase(slAllCommands.Strings[i])) = 0) and
+ (UTF8Pos(lstr, UTF8LowerCase(CommandsIntf.GetCommandCaption(slAllCommands.Strings[i], cctLong))) = 0) then
slAllCommands.Delete(i);
+ end;
end;
// 3. Based on all the commands we got, populate "equally" our three string list of commands, hotkeys and descrition used to fill our grid.
| ||||
| Fixed in Revision | |||||
| Operating system | Windows | ||||
| Widgetset | |||||
| Architecture | |||||