Hi,

Is there any way to change the window that is currently in focus?

I have been working on an extension that allows you to switch tabs by
selecting from a dropdown ( 
https://chrome.google.com/extensions/detail/jnjfeinjfmenlddahdjdmgpbokiacbbb
), if the tab you select is in a different window I have resorted to
moving the selected tab to the window that is currently in focus, this
is less than ideal :(

I have tried:

chrome.tabs.get(tabid, function(tab) {
  chrome.windows.update(tab.windowId, {}, function(w) {
    chrome.tabs.update(tab.id, {selected:true});
  });
});

and a number of variants but with no success.  This code simply sets
the selected tab as the current tab but leaves the window focus
unchanged, has anyone had any success attempting this?

Thanks in advance,

Evan
-- 
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to