bindString stealing focus?
Here is the issue. I'm building a "standard" user registration form with some interaction. To this point this interaction consists on:
- When the 'username' field loses focus, the app checks if that username already exists, and binds a string to a WTemplate field stating if yes or no.
- When any char key is pressed in the password field, a password stregth check is done, updating a progressbar and a WTemplate field indicating the strength of the password.
- When 'confirm password' losses focus, also a string is binded to a WTemplate field informing if the password confirmation matches or not matches the password.
Now, the act of binding the string trough the signal steals the focus from the form field. But only happen if the binded string changes, if it remains the same the focus is not lost.
To be more clear, if I'm typing a password in the password field, and the password strength message is 'short', I can continue typing (even the keyWentUp event and the bindString are executed with every key press). Once it gets to, for example, 'simple short', I lose the focus on the password field.
bindString (or the signals) shouldn't be stealing the focus from the current WLineEdit (unless, of course, tab key or any other 'pass focus' mechanism is used). Any solution/workaround on this? It's getting me nuts.
RE: bindString stealing focus? - Added by Wim Dumon 10 months ago
Can you provide us with a small test-case for this problem? e.g. a modification of Wt's hello world example? I haven't seen this behavior before...