summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-06-10 11:09:15 +0200
committerTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-06-10 11:09:15 +0200
commitd786d5426e74a1d5291f88e66abe8352e5f22ad1 (patch)
tree5876e084b9421e33997e6d0d214ba31de9cd1479
parent960220f9178ed521343d2d8afc4008198c29495a (diff)
downloadtuxcmd-d786d5426e74a1d5291f88e66abe8352e5f22ad1.tar.xz
Allow slash "/" key to trigger panel quicksearch
-rw-r--r--UMain.pas9
1 files changed, 5 insertions, 4 deletions
diff --git a/UMain.pas b/UMain.pas
index 78dbcc3..2d436d0 100644
--- a/UMain.pas
+++ b/UMain.pas
@@ -1434,10 +1434,11 @@ begin
end else if Assigned(AListView.Selected) and (AListView.ConvertToSorted(AListView.Selected.Index) = 0) then Accept := False;
GDK_END: if Assigned(AListView.Selected) and (AListView.ConvertToSorted(AListView.Selected.Index) = AListView.Items.Count - 1) then Accept := False;
GDK_SLASH, GDK_KP_SLASH: if Shift = [ssCtrl] then begin
- if LeftPanel then PathButtonClick(LeftRootButton)
- else PathButtonClick(RightRootButton);
- Accept := False;
- end;
+ if LeftPanel then PathButtonClick(LeftRootButton)
+ else PathButtonClick(RightRootButton);
+ Accept := False;
+ end else
+ if (Shift = []) then ActivateQuickFind(Sender = LeftListView);
{ GDK_0..GDK_9: if ConfBookmarkQuickJump and (Shift = [ssAlt]) then QuickJumpToBookmark(LeftPanel, Key - GDK_1)
else begin
Accept := False;