Page 1 of 1

StringGadget and #PB_String_Password flag

Posted: Wed Nov 02, 2016 12:01 pm
by spidernet
Hello,

It would be good if there is special "Enter key pressed" event in the StringGadget when using #PB_String_Password flag.
I have a login window in my app and most users press the Enter key by instinct after typing their password, but that doesn't generate
any event and can't detect to it to log in that way. So they wait second or two and when nothing happen they finally put
hand on the mouse and press the login button to log in to the app. With this improvement can achieve better user experience.

Re: StringGadget and #PB_String_Password flag

Posted: Thu Nov 03, 2016 6:06 pm
by Fred
Did you try to add a keyboard shortcut ?

Re: StringGadget and #PB_String_Password flag

Posted: Fri Nov 04, 2016 8:21 am
by spidernet
Fred wrote:Did you try to add a keyboard shortcut ?
I tried it now and the result is that the AddKeyboardShortcut() is perfect solution for this.
In my case I used it with GetActiveGadget() and PostEvent() to "push the Login button".

Thanks Fred! :)