Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An addendum to my post' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An addendum to my post
Authored by: Thom on Jan 17, '06 08:40:32AM

Having spent a few days now with FireFox, there are only a few things that are still causing me grief. One of them involves the behavior of cursors inside of textfields, both in forms and in the location/search bars. The up/down arrow keys should position the cursor at the beginning / end of a field, and they don't seem to. However, it appears there is already a bug fix in the works about this.

Also:
gBrowser.mTabContainer.advanceSelectedTab(1,true);

Notice the second argument, 'true' in the advanceSelectedTab method. This will automatically rotate back around to the beginning if you're on the last tab. Similarly,
gBrowser.mTabContainer.advanceSelectedTab(-1,true);
...will highlight the last tab if you hit your 'Previous Tab' command from the first tab.

I spent a bunch of time researching and programming a javascript workaround before someone pointed out that the command took the second argument. Still, it was a neat look into the firefox internals.



[ Reply to This | # ]