Page 1 of 1

New file dialog file name box moves cursor home on space

Posted: Thu Mar 12, 2015 3:18 pm
by krstcs
Ranorex 5.3.0
Windows 7

This worked in 5.2.2 and previous, so the bug was introduced in 5.3.0.

When typing the name of a new file that is being added to the project, hitting the space-bar makes the cursor move back to home in the text box instead of adding a space.

Previously hitting space would add a space and then convert that space to an underscore "_" upon clicking "Create".

To reproduce:
1. Add a new file to the project.
2. In the "New File" dialog enter a file name that contains a space such as "New File". Upon hitting space, the cursor jumps to the start of the text box.

Re: New file dialog file name box moves cursor home on space

Posted: Thu Mar 12, 2015 3:21 pm
by krstcs
Let me add that it does this only when the cursor is at the end of the name. If the cursor is in the middle of a word it will add a space.

Also, when the cursor is at home, the space bar will move the cursor to just after the first letter, but will NOT add a space.

Re: New file dialog file name box moves cursor home on space

Posted: Fri Mar 13, 2015 1:35 pm
by Support Team
Hi krstcs,

Thank you for reporting this issue :), I already forwarded it.

Regards,
Markus

Re: New file dialog file name box moves cursor home on space

Posted: Mon Apr 20, 2015 9:37 pm
by krstcs
Any update on this? It's still not fixed in 5.3.2.

This is one of those little bugs that is rather annoying, even if it isn't a critical functional issue.

Re: New file dialog file name box moves cursor home on space

Posted: Tue Apr 21, 2015 8:39 am
by Support Team
Hi Kelly,

I am afraid you are right, since this bug fix will be released as part of a bigger release of related issues/features.
I cannot give you a guarantee but it should be released with Ranorex 5.4.
Thank you for your patience.

Regards,
Markus

Re: New file dialog file name box moves cursor home on space

Posted: Tue Apr 21, 2015 2:49 pm
by krstcs
Thanks Markus!

Re: New file dialog file name box moves cursor home on space

Posted: Wed Jul 22, 2015 9:27 am
by Primoz
I guess some kind of fix was deployed into 5.4.0 for this but it is still not as it was before. When naming new file user cannot use space(bar) at the end of the string - it doesn't jump to the start, but it also doesn't do anything.

Re: New file dialog file name box moves cursor home on space

Posted: Thu Jul 23, 2015 2:17 pm
by Support Team
Hi Primoz,

We fixed this in the way that it is no longer allowed to add spaces at the beginning and the end of a new file but in the middle. The spaces in between will then be converted to underlines.

Regards,
Markus

Re: New file dialog file name box moves cursor home on space

Posted: Fri Jul 24, 2015 2:13 pm
by krstcs
Markus,

This is not how it used to work before you guys broke it in 5.3. It used to allow us to hit space bar at any point (start, middle, end) and would turn that into an underscore.

If you aren't going to allow us to use spaces in file names (which is fine since .NET doesn't allow them in construct names) then you should just convert all space bar hits directly into underscores in file names, test case, etc., regardless of whether it is at the beginning, middle, or end of the name.

In other words, if the cursor is in one of the designated name/rename boxes where spaces aren't allowed, then hitting the spacebar should type an underscore instead, just as if I hit the underscore key. There should be no post-typing conversion.

UX-wise, it is bad design to enforce changes like this AFTER the user has submitted the data. You should always convert the format upon entry, not upon save, so the user can see immediately what the final name will look like.

Re: New file dialog file name box moves cursor home on space

Posted: Fri Jul 24, 2015 2:27 pm
by odklizec
Hi Markus,

I must agree with krstcs about this. Current behavior is not very user friendly. I'm not using spaces in names, but it was very handy using the space bar knowing that all spaces will be then converted to underscore. With current changed workflow, the space bar is practically useless for naming. If it can be used only in the middle of name string, it's faster to use the underscore key instead ;) The original workflow was just handy behavior.

Re: New file dialog file name box moves cursor home on space

Posted: Mon Jul 27, 2015 4:47 pm
by Support Team
Hi Kelly und Pavel,

Thank you for your valuable responses, this is very much appreciated.
And I already forwarded them.

Regards,
Markus