Author Topic: Find Symbol selection  (Read 1323 times)

link

  • Community Member
  • Posts: 48
  • 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: 725
  • Hero Points: 47
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: 725
  • Hero Points: 47
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 ;).