[patch] focus in kfind

Jos van den Oever oever at fenk.wau.nl
Thu Oct 17 09:07:27 BST 2002


Here's a tiny usability patch.
When starting the 'Find File' tool in konqueror, the focus is not set to the 
filename entry combobox. This patch fixes that.
Ideally, the text in that box would be selected, with the cursor at the end.
This is the case when running kfind seperately. I couldn't find the function 
to add this functionality in the embedded tool.

Index: kftabdlg.cpp
===================================================================
RCS file: /home/kde/kdebase/kfind/kftabdlg.cpp,v
retrieving revision 1.91
diff -u -r1.91 kftabdlg.cpp
--- kftabdlg.cpp        23 Sep 2002 18:55:22 -0000      1.91
+++ kftabdlg.cpp        17 Oct 2002 08:05:57 -0000
@@ -324,6 +324,7 @@

     fixLayout();
     loadHistory();
+    nameBox->setFocus();
 }

 KfindTabWidget::~KfindTabWidget()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: findpatch.diff
Type: text/x-diff
Size: 409 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20021017/47913705/attachment.diff>


More information about the kfm-devel mailing list