mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
UPD: Ctrl+Home/End go to first/last found/filtered file (patch by Denis Bisson)
This commit is contained in:
parent
37926de914
commit
f2fd418200
1 changed files with 21 additions and 13 deletions
|
|
@ -566,30 +566,38 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
(* // disabled as they can conflict with trying to get to start/end position
|
||||
// of edtSearch
|
||||
// Request to have CTRL pressed at the same time.
|
||||
// VK_HOME alone reserved to get to start position of edtSearch.
|
||||
VK_HOME:
|
||||
begin
|
||||
Key := 0;
|
||||
|
||||
if Assigned(Self.OnChangeSearch) then
|
||||
if ssCtrl in Shift then
|
||||
begin
|
||||
Options := qsdFirst;
|
||||
Self.OnChangeSearch(Self, edtSearch.Text, Options);
|
||||
Key := 0;
|
||||
|
||||
if Assigned(Self.OnChangeSearch) then
|
||||
begin
|
||||
Options.Direction := qsdFirst;
|
||||
Self.OnChangeSearch(Self, edtSearch.Text, Options);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
// Request to have CTRL pressed at the same time.
|
||||
// VK_END alone reserved to get to end position of edtSearch.
|
||||
VK_END:
|
||||
begin
|
||||
Key := 0;
|
||||
|
||||
if Assigned(Self.OnChangeSearch) then
|
||||
if ssCtrl in Shift then
|
||||
begin
|
||||
Options := qsdLast;
|
||||
Self.OnChangeSearch(Self, edtSearch.Text, Options);
|
||||
Key := 0;
|
||||
|
||||
if Assigned(Self.OnChangeSearch) then
|
||||
begin
|
||||
Options.Direction := qsdLast;
|
||||
Self.OnChangeSearch(Self, edtSearch.Text, Options);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
*)
|
||||
|
||||
VK_RETURN, VK_SELECT:
|
||||
begin
|
||||
Key := 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue