New file dialog file name box moves cursor home on space

Bug reports.
krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

New file dialog file name box moves cursor home on space

Post by krstcs » Thu Mar 12, 2015 3:18 pm

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.
Shortcuts usually aren't...

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Thu Mar 12, 2015 3:21 pm

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.
Shortcuts usually aren't...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Fri Mar 13, 2015 1:35 pm

Hi krstcs,

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

Regards,
Markus
.
Image

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Mon Apr 20, 2015 9:37 pm

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.
Shortcuts usually aren't...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Tue Apr 21, 2015 8:39 am

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
.
Image

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Tue Apr 21, 2015 2:49 pm

Thanks Markus!
Shortcuts usually aren't...

Primoz
Posts: 8
Joined: Mon Nov 17, 2014 10:01 am

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

Post by Primoz » Wed Jul 22, 2015 9:27 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Thu Jul 23, 2015 2:17 pm

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
.
Image

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Fri Jul 24, 2015 2:13 pm

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.
Shortcuts usually aren't...

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Fri Jul 24, 2015 2:27 pm

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Mon Jul 27, 2015 4:47 pm

Hi Kelly und Pavel,

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

Regards,
Markus
.
Image