What I'm trying to do...
Open the Library in a tab and change focus to one of these items: History, Downloads or Bookmarks Menu
What I got so far...
Code: Select all
if(window.loadURI)BrowserOpenTab(); loadURI(getShortcutOrURI('chrome://browser/content/places/places.xul',{}));
I'm pretty sure I got it from a post here on Mozillazine. It opens the Library in a tab, but focus is always on "All Bookmarks" contents.
In order to achieve my goal, I ended using Autohotkey to intercept the key combo, once the Library is open, it sends Shift+Tab (to change focus to the tree list) then 'hi' to focus on History, for example. It works fairly well this way, but it would be awesome if the same could be achieved using keyconfig only, less things to keep track of
Thanks in advance.
Code: Select all
#IfWinActive, ahk_class MozillaWindowClass
^h::
Send ^{h}
Sleep (200)
Send +{Tab}
Sleep (50)
Send hi
Sleep (50)
Send {Down}
return