Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Search    [ Add a report in this area ]  
Report #:  94706   Status: Need Feedback
Shift+Ctrl+F activates wrong functionality
Project:  Delphi Build #:  14.0.3593.25826
Version:    14.2 Submitted By:   David Cornelius
Report Type:  Minor failure / Design problem Date Reported:  6/2/2011 11:27:10 PM
Severity:    Infrequently encountered problem Last Updated: 11/11/2011 9:56:53 PM
Platform:    All versions Internal Tracking #:  
Resolution: Need More Info (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
The Search menu shows the hot key Shift+Ctrl+F will pull up the dialog for Find in Files.  Instead, it searches the associated form for the component under the cursor.
Steps to Reproduce:
Using the IDE code editor:
--1--  Place the cursor over the name of a component that exists on the associated form and press Shift+Ctrl+F.  It will switch to the form view and highlight the component by that name.
--2--  Place the cursor over any text or white space that is not the name of a component on the associated form and press Shift+Ctrl+F.  A dialog message appears with an error saying the component was not found.


(I had no idea this functionality even existed and accidentally found it by trying to use the hotkey listed in the Search menu.  I would hardly ever use this functionality and would really like a hotkey to the Find in Files feature.)
Workarounds
None
Attachment
delphi_find_files.zip
Comments

Tomohiro Takahashi at 6/3/2011 1:12:23 AM -
> --1-- ...
> --2-- ...
Could you please attach some screenshots to understand/verify your issue?

David Cornelius at 6/25/2011 5:28:11 AM -
I tried adding a screen shot, but the option to add an attachment is disabled.  So here is a description of what you would see in my install of Delphi 2010.

The Search menu shows that the short-cut key for Find in Files... is Shift+Ctrl+F.  But in the code editor, if I press Shift+Ctrl+F in a blank space, I get the error message, "No identifier was found at the edit cursor."  If I place my cursor on a variable named FolderName (for example), and press Shift+Ctrl+F, I get the error message, "A component named FolderName was not found on the form."  If I place my cursor on an identifier of one of the components on the form and press Shift+Ctrl+F, then the editor switches to form view and the component is highlighted.

Therefore, the short-cut key listed in the Search menu is wrong.  Shift+Ctrl+F does not "Find in Files..." but instead locates the component under the cursor in the code editor.  I would like to be able to press Shift+Ctrl+F to Find in Files, but instead I have to pull down the Search menu and select the option manually.

Tomohiro Takahashi at 6/25/2011 6:23:21 AM -
Please use Windows Native QC Client to attach a. .zip file to your report.
The standalone client comes with Delphi.

David Cornelius at 8/6/2011 11:57:14 PM -
I actually have been using the Windows client, but had not been able to add attachments previously.

Anyway, I have added three screen shots.  The first one, delphi_find_files.png, shows the Search menu of Delphi 2010.  I use keyboard short-cuts a lot and the one for "Find in files..." is Shift+Ctrl+F.

When in the editor and the cursor is in a blank space, hitting Shift+Ctrl+F shows the error message in the screen shot, delphi_find_files_err_blank.png.

When on an identifier in the code, hitting Shift+Ctrl+F shows the error message in delphi_find_files_err_id.png.  In this example, I had placed the cursor on crDefault, then hit the short-cut, Shift+Ctrl+F.

When on a component identifier in the code (a component that is actually on the attached form or data module in design view), hitting Shift+Ctrl+F switches to the form view and selects the component that was under the cursor in the editor.

Locating a component on the form from the editor seems like a nifty feature to have around.  In fact, I don't know any other way to activate that feature in D2010 other than this short-cut key that, from what the menu shows, is supposed to bring up the "Find in Files" dialog.

Eddy Tonissen at 11/11/2011 12:40:55 AM -
I think you have GExperts installed. Their feature "Find Component Reference" has Shift+Ctrl+F as the default shortcut. You can change this shortcut so that Shift+Ctrl+F will bring up the "Find In Files" dialog again. Go to the GExperts menu and select "Configuration". In the dialog that appears change the shortcut for the "Find Component Reference" feature.

Server Response from: ETNACODE01