Tab Mix Plus

Official Home of TMP
It is currently Thu May 23, 2013 7:08 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Bugs of focus.
PostPosted: Sun Aug 28, 2005 12:18 am 
When [New Tab] button clicked, addressbar got focus.
I want to focus WebPage.

My StartUpPage(HomePage) is Google.
When [New Tab] button clicked, Firefox open homepage.
At that time, I want to focus Google's Search box.

Supplement:
Sometimes, Google's Search box got focus.
When [HomePage] button middle clicked, Google's Search Box got focus.
A symptom occurs when I move a mouse just after I clicked [New Tab] button.


Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Extention List:
TabMix Plus 0.2.4
IE View 1.2.4
CuteMenus 0.4
Paste and go 0.4.1
Greasemonkey 0.5.1
Stop-or-Reload button 0.1


Top
  
 
 Post subject:
PostPosted: Sun Aug 28, 2005 6:02 pm 
Offline
Admin
User avatar

Joined: Tue Aug 02, 2005 10:34 pm
Posts: 2074
Location: Houston, Texas
im just trying to understand this
do u have the option to have homepage open in new tabs?
then i focuses to the location bar?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 28, 2005 10:20 pm 
I checked [Load homepage on every new tab].
I unchecked [New tabs open in background].
My homepage is Google.

Procedure:
[NewTab] button click.
move MouseCursor.(example, locationbar, mainmenubar)
locationbar got focus.

I want...:
[NewTab] button click.
#(move MouseCursor.(example, locationbar, mainmenubar))
WebPage(Tab) got focus.(Google's inputbox(textbox))


Top
  
 
 Post subject:
PostPosted: Sun Sep 11, 2005 1:30 am 
guest


Top
  
 
 Post subject:
PostPosted: Sun Sep 11, 2005 1:42 am 
Code:
function TBP_BrowserOpenTab()
{
    var loadHome, loadNewInBackground;

    try {
        loadHome = gPref.getBoolPref("extensions.tabmix.loadHome");
        loadNewInBackground = gPref.getBoolPref("extensions.tabmix.loadNewInBackground");
    }
    catch(e) {
        loadNewInBackground = false;
    }

    if (loadHome) {
        var originCharset = document.characterSet;

        var newTab = gBrowser.addTab(gHomeButton.getHomePage().split("|")[0], null, originCharset);
        if (!loadNewInBackground) gBrowser.selectedTab = newTab;
    }
    else {
        var blankTab = gBrowser.addTab('about:blank');
        if (!loadNewInBackground) gBrowser.selectedTab = blankTab;

        if (gURLBar) {
            setTimeout(function() { gURLBar.focus(); }, 5);
        }
    }
    return;
}


if loadHome, please not focus urlbar.
I renewed here.

before:
Code:
else {
    var blankTab = gBrowser.addTab('about:blank');
    if (!loadNewInBackground) gBrowser.selectedTab = blankTab;
}

if (gURLBar) {
    setTimeout(function() { gURLBar.focus(); }, 5);
}


after:
Code:
else {
    var blankTab = gBrowser.addTab('about:blank');
    if (!loadNewInBackground) gBrowser.selectedTab = blankTab;

    if (gURLBar) {
        setTimeout(function() { gURLBar.focus(); }, 5);
    }
}


Top
  
 
 Post subject:
PostPosted: Sun Sep 11, 2005 2:10 pm 
Offline
Admin
User avatar

Joined: Tue Aug 02, 2005 10:34 pm
Posts: 2074
Location: Houston, Texas
thanks i fixed it


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group