Page 1 of 2
set focus() to the password input field
Posted: Fri Sep 23, 2011 4:53 pm
by hnl_dk
Hello
It would be nice if the focus() could be set to password input field, so we do not need to use the mouse that much (or tab key).
Re: set focus() to the password input field
Posted: Mon Nov 14, 2011 5:32 pm
by genix
here is modified login.sh (for 1.4.3) with stuff you need +autosend via enter
Re: set focus() to the password input field
Posted: Sat Dec 03, 2011 5:38 pm
by pbix
I put the set focus() function into login.sh in the GIT so it will be there for the next release. I did not add the autosend part since login.sh has changed quite a bit since what genix modified and I was not clear on how to merge these.
If someone will add autosend to the modern login.sh file and test it I will take a look at getting it added to the GIT.
Re: set focus() to the password input field
Posted: Mon Dec 05, 2011 12:59 pm
by hnl_dk
Perfect, thank You very much
Re: set focus() to the password input field
Posted: Mon Dec 05, 2011 1:29 pm
by genix
Here is the diff for 1.5, works with 1.4 also
Re: set focus() to the password input field
Posted: Tue Dec 06, 2011 11:26 am
by hnl_dk
working perfectly with 1.5.1
Re: set focus() to the password input field
Posted: Sun Dec 11, 2011 5:30 pm
by pbix
I added this autosend function to the login.js file but note that Firefox already has this autosend feature built in so some will see no benefit from this. I think Chrome does too.
Re: set focus() to the password input field
Posted: Mon Dec 12, 2011 3:35 am
by hnl_dk
pbix wrote:I added this autosend function to the login.js file but note that Firefox already has this autosend feature built in so some will see no benefit from this. I think Chrome does too.
Yes, I am using Firefox 11.0a1.
So that is why it is working perfectly for me.
Just tried with Internet Explorer 9... here it is not working with "Enter", but it is instead working with "Tab".
Re: set focus() to the password input field
Posted: Mon Dec 12, 2011 9:52 am
by genix
Well, I found that using onchange event processing in password fiels is totally wrong because that event triggered not only when you pressing Enter (in FF/Chrome) but always when input field loses input focus - i.e. pressing tab key, clicking mouse in surrounding area etc.
So onchange event processing should be removed
Re: set focus() to the password input field
Posted: Mon Dec 12, 2011 8:42 pm
by pbix
Since you offer no alternative are you then saying we should abandon autosend altogether? Seem like a 180 from your previous requests.