Author Topic: Initial field contents not selected  (Read 2655 times)

jacobsjg

  • Junior Community Member
  • Posts: 7
  • Hero Points: 1
Initial field contents not selected
« on: May 04, 2015, 12:08:10 PM »
This has happened to me several times and has always required an uninstall/reinstall to get past, so hopefully it is something stupid I am doing that has a fix someone has already come across.  I haven't found anything by searching the forums, though.

At some point after used SlickEdit for a bit on my windows PC, opening any dialog that normally has an edit box with the contents initially highlighted now opens without those contents highlighted, and the cursor at the end of the field.

To be more clear, typically, if you do something like type ctrl-j to go to a line, the line number field is highlighted so that if I just type a new number, it overwrites what was in there.  Now, the cursor is after the old value, so typing appends the new characters to what was there.

This occurs for all windows (find/replace being the most annoying breakage).

I have seen this with various versions of SlickEdit over the years, and am still seeing it with 19.0.2.0 64-bit on Windows.

I'm guessing I accidently hit scroll lock or insert or something at the wrong time and set some mode different than the deafult/I want, but can't figure out how to undo via preferences.

Any suggestions on what to try before I uninstall and reinstall again?

jacobsjg

  • Junior Community Member
  • Posts: 7
  • Hero Points: 1
Re: Initial field contents not selected
« Reply #1 on: May 04, 2015, 12:16:35 PM »
OK, as often happens, as soon as I posted this I found the solution.  Another post listed a bunch of issues, and one was similar to mine, with a fix of:
FIND/REPLACE: The macro variable (def_focus_select) controls whether text fields are selected when focus changes. It sounds like the macro variable got turned off some how but you corrected it by reinstalling. Just set this macro variable to 1. I looked around the macro source and the only case where this is turned off is a pretty remote case on Unix.

I have no clue how I disabled this, but setting it to 1 immediately fixed my issue.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Initial field contents not selected
« Reply #2 on: May 04, 2015, 12:21:39 PM »
I have seen this before, there is an intermittent issue where one of the macro variables gets reset.  You can fix this from the main menu Macro > Set Macro Variable... and set Variable to def_focus_select and set the Value to 1.  That should fix the issue when it gets into this state.  We are still trying to figure out how it gets into this state and hoping to get in a fix for a later release.