@fml2 said in Replace in Files / "Directory" field scrolls right when clicked:
My point exactly. This is the difference. To me, it would be more logical if no scrolling took place upon focus. Why should the field be scrolled on focus? This disrupts the mental user context IMO.
There is no difference. You misunderstood what @Coises was trying to say: whichever combobox field you click in, that one highlights all the text and scrolls to the right; the other fields go back to their default state.
Follow this sequence:
STATE = nothing active/selected/focused: both Find What and Directory show the beginning of the value (“scrolled left”)
a1f36bfd-ee45-4f68-b901-c55183d06b89-image.png
STATE = click in Find What: Find What text shows the end (“scrolled right”), no change to Directory
1a0936c3-5263-48ca-9c0d-499846b7761d-image.png
STATE = click in Directory: Find What text deselects, and goes back to the beginning (“scrolled left”), and Directory selects all and shows the end (“scrolled right”)
205ac65a-1a76-48f0-997f-90fe3dc84896-image.png
STATE = click back in Find What: it goes back to the exact same thing as state 2
They behave exactly the same: whichever one you click selects all and scrolls to the far right. There is no difference. This is standard Windows GUI behavior, and has been for at least two decades. This is not Notepad++ specific.
update: for example, in Microsoft notepad.exe, using the Save As dialog, where the File name field uses a combobox (typeable box with pulldown arrow on right for accessing other values):
STATE = nothing clicked/selected: the
File name box is scrolled to the left, showing the beginning of the filename
e8c1df76-cbe4-4a2a-8ff7-374f8b50b99e-image.png
STATE = click in
File name: it selects all and scrolls to the far right to show the end of the filename
74fc3dd1-7ffa-4238-a410-db6d967adc02-image.png
This is the exact same behavior as in the Notepad++ dialog box. This is standard Windows GUI behavior.