Bug #99338 Can't add space in Connection Name
Submitted: 23 Apr 2020 18:44 Modified: 11 May 2020 6:02
Reporter: S Adamson Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:8.0.19, 8.0.20 OS:Windows (Microsoft Windows 10 Pro)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[23 Apr 2020 18:44] S Adamson
Description:
This is a UI bug but it is extremely annoying.

MySQL Workbench 8.0.19 (latest version) on Windows 10

I go into Tools -> Manage Connections
I click into the "Connection Name" field and go to edit the Connection Name (or create a name for a New connection)
When I use the space bar (to put a space between words) the cursor jumps to the beginning of the field, thus I am unable to insert a space between words.
The connection name can take a space, you just have to paste it in from another source because of this UI bug.
(One, this can't be desired behavior; if you want to disallow spaces then do that but don't jump the cursor to the start of the field!)
(Two, this appears to happen only on a re-draw of the form. The very first load of this form appears to allow a space here, if you are adding a brand new connection. But after the form is re-drawn-- either for editing an existing connection or clicking the New button and starting to type)

How to repeat:
Tools -> Manage Connections
Click on an existing connection or the New button
Type a word
Hit spacebar
Cursor jumps to the beginning of the field to the left of the word you just typed
Expected behavior: a space appears where desired and cursor stays put for the next word

Suggested fix:
Don't do that, it's really stupid. Probably some sort of listener on the space key?
[11 May 2020 6:02] MySQL Verification Team
Hello S Adamson,

Thank you for the report and feedback.
Observed this on Win10 with WB 8.0.20.

regards,
Umesh