Author Topic: Find Symbol selection  (Read 3775 times)

link

  • Community Member
  • Posts: 57
  • Hero Points: 3
Find Symbol selection
« on: November 06, 2014, 08:35:43 PM »
In v18, when I brought up the Find Symbol dialog, it highlighted the previous search text making it easy to replace it with a new term.  In v19 (up to RC4) the text box still has focus by default but no longer highlights the existing text.  Is this intentional?

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 798
  • Hero Points: 54
Re: Find Symbol selection
« Reply #1 on: November 06, 2014, 09:03:57 PM »
Looks like a bug.

++rodney

machish

  • Community Member
  • Posts: 52
  • Hero Points: 0
Re: Find Symbol selection
« Reply #2 on: December 11, 2014, 05:12:39 PM »
I had assumed that this bug fix barely missed 19.0.0, so I've been patiently waiting for the next release. Unfortunately, 19.0.1.1's Find Symbol window still behaves the same way.
It is annoying to have to do 'Find Symbol', highlight the entire phrase, and then start typing. I'm much more programmed to start typing, and then see that there is annoying suffix of the previous search string messing things up...

-martin

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 798
  • Hero Points: 54
Re: Find Symbol selection
« Reply #3 on: December 15, 2014, 07:17:23 PM »
Sorry, but this fell through the cracks. Good news is that it will be in the first 19.0.1 hotfix due out shortly after 19.0.1 is final.

In the meantime, if you are comfortable with Slick-C, you can hack this in yourself:
In macros/se/ui/toolwindow.e, around line 1807, change:

Code: [Select]
            focus_to_wid._set_focus();

to:

Code: [Select]
            if ( _get_focus() != focus_to_wid ) {
               focus_to_wid._set_focus();
            } else {
               focus_to_wid.call_event(focus_to_wid, ON_GOT_FOCUS, 'w');
            }

Save and load the module (Macro>Load Module).

++rodney
« Last Edit: December 16, 2014, 03:59:49 AM by Rodney »

machish

  • Community Member
  • Posts: 52
  • Hero Points: 0
Re: Find Symbol selection
« Reply #4 on: December 16, 2014, 12:29:33 AM »
Thanks Rodney! That's great! (Also the first time I edited slick-c ;).