codenvy-legacy / plugin-datasource

This repository is deprecated. Visit https://github.com/codenvy/che-plugins
Eclipse Public License 1.0
2 stars 10 forks source link

IDEX-1625. Added number validation for port inputs. #225

Closed AndrienkoAleksandr closed 9 years ago

AndrienkoAleksandr commented 9 years ago

IDEX-1625. Added validators of digit for ports datasource. This validators allows entering digits from numpad and hot key ctrl+A, ctrl+C, ctrl+V, ctrl+Insert, shift + Insert, Shift + arrows and keys: Backspace (for deletion one digit), Delete (for deletion selected symbols).

sunix commented 9 years ago

it works well but not on the NuoDB one. I cannot insert anything in the port field for a NuoDB broker

AndrienkoAleksandr commented 9 years ago

Strange... in superdevmode I can enter simple digits and digits from numpad, If numlock key is disable numpad keys works like arrow (it's normal behavior). Arrows keys works two.

AndrienkoAleksandr commented 9 years ago

You can't enter digits in the port field for a NuoDB broker or they wouldn't be saved in the input?

sunix commented 9 years ago

mh maybe it's because of my French keyboard. To enter digit i have to do shift + number

AndrienkoAleksandr commented 9 years ago

Oh, you are right, my validator doesn't work for this case. I will try fix it, you gave me very good test case :))

AndrienkoAleksandr commented 9 years ago

I've fixed problems with non English keybord (I deleted my custom validator and used more standart design).