 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Fri Feb 20, 2009 7:25 pm
[3.03a] Find Again (F3) doesn't work |
Find Again (F3) command from the Editor menu of the PE does not work. When "Find" finds something for the first time, pressing F3 performs some strange switching for the tree view control instead of further search. My guess is that F3 switches between "Find in the current setting" and "Find in settings" modes.
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Feb 20, 2009 11:08 pm |
Works fine for me here. You just need to make sure that the *editor* has the keyboard focus. Many different editor functions and keyboard shortcuts are context sensitive and depend upon what part of the editor is selected. For example, if you select text in the editor and press Ctrl-C, the text is copied to the clipboard. But if the Treeview on the left has the focus, then Ctrl-C will copy the current setting. Same with find...if the editor has the focus, the Ctrl-F "Find" and the F3 find-again will search text in the script editor, but if the Treeview has the focus, the Ctrl-F will activate the search toolbar for searching across multiple settings.
|
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Sat Feb 21, 2009 4:28 am |
Yes, the editor has the keyboard focus (text cursor blinks after the first highlighted match). Btw, with your context sensitive system for menu shortcuts it is impossible to start text search within a setting without the editor having the focus first. Without the keyboard focus the editor would show the Find toolbar instead.
WinXP SP2 |
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Sat Feb 21, 2009 4:35 am |
Dunno, it start working after CMUD restart, but between my first posts I have CMUD (and computer) restarted too and it did not work... It seems that something triggers this bug.
|
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Sun Feb 22, 2009 6:28 pm |
I've figured out what happened. It is not the problem with "Find again" menu itself but with the shortkey (F3) assigned to it. On the "Filter" toolbar there is "Show class folders" button with the same F3 shortkey assigned to it (see tooltip message for the button), which intercepts F3 key pressings sometimes.
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Feb 23, 2009 5:37 pm |
Yes, that is correct, but that still doesn't explain the problem. This is no different than the Ctrl-F menu function which is also assigned to two different items. The routine that handles the "Show class folders" checks to see if the editor has the keyboard focus or not before it decides which function to call.
|
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Mon Mar 09, 2009 11:39 pm |
Sorry, but there is definitely a problem with how CMUD handles F3 key. Will it be fixed for 3.05? I ended up using Replace and answering No: I find it faster than use "Find next" from the menu every time.
|
|
_________________ My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Mar 10, 2009 5:00 pm |
Arde, you've been around long enough to know better. You need to give me the exact procedure to reproduce whatever problem you are talking about. Right now I have no idea what you want "fixed".
Here is the procedure I used to test:
1) Open Package Editor and select New/Alias. Enter a name, like "test". Press Tab to move to the script field, or click on the script field.
2) Enter a script, like "#SHOW hello world"
3) Click the Save button
4) Press Ctrl-F to find text. Enter hello in the Search For box and click Find.
5) Press Home key to move to beginning of text
6) Press F3 key and it properly finds and highlights "hello".
Looking in the View/Show menu, the F3 key isn't assigned to *any* menu shortcuts. If your F3 key is still assigned to something left over from an old version, try deleting your SETTINGS.TBZ and SETTINGS.XLY layout files and restart CMUD.
But at this point I cannot determine what problem you are still having with F3. |
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Tue Mar 10, 2009 5:33 pm |
What procedure I can give you if F3 just doesn't work?.. Record a video?
Using your procedure, at step 6 it didn't find "hello" again. Instead, it highlighted the "Show Class Folder" button with the same assigned F3 hotkey on the Filter toolbar. All subsequent F3 pressings went to the same button on the toolbar, not to the script field.
Next, I tried to delete my SETTINGS.TBZ and SETTINGS.XLY layout files. It didn't help.
Last one, I turned off the Filter toolbar. After that F3 completely stop working. This indicate that F3 keypress messages are not reaching the menu, only the Filter toolbar.
Yes, I know that sometimes it "magically" start working, but I can't get it to work for several days now. |
|
_________________ My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads |
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Tue Mar 10, 2009 6:07 pm |
It works again. But this time I was angry enough to find the cause.
Calling the Editor with Ctrl+G prevents Find again (F3) from working. Since I almost always use that shortcut, F3 almost always not work for me.
May I ask a question? Will it be fixed for 3.05? (j/k) |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Mar 10, 2009 6:33 pm |
Geez, this is one of the most obscure bugs I have ever seen.
Yep, you are correct that using Ctrl-G prevents F3 from working. Turns out, pressing Ctrl-G actually prevents CMUD from loading the saved layout of the settings window. In other words, if you customize the toolbar or rearrange the window, using Ctrl-G to open the package editor will not use your custom layout or toolbar.
The reason is that there was some obscure code that prevents the custom layout from being loaded when the SHIFT key is held down (similar to holding down SHIFT when loading a session to prevent the layout from being loaded). By the "ShiftIsDown" routine was also returning True if the CONTROL key was held down. And when pressing Ctrl-G to open the settings editor, the Control key is detected as being held down, so the layout is not loaded.
It's the routine that loads the layout that is responsible for clearing the F3 shortcut that is causing the problem in your case. And since I always click the Settings button instead of pressing Ctrl-G, that was causing the problem.
Thanks for tracking this down...it was really obscure. And I guess nobody has customized their setting editor layout or toolbar to have seen this problem there either. Just a really good example of how the EXACT details of what you click or what keys you press can make a big difference in tracking down a bug. Thanks for your patience on this one.
And yes, it will be fixed in 3.05 thanks to you. |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Tue Mar 10, 2009 7:49 pm |
All this time I just thought it wasn't saving those customizations yet. I always use CTRL-G, both to open the PE and to bring it to the front.
Reading this did make me feel better about all the times I typed out:
3. Open Package Editor (CTRL-G) |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
|
|
|