keyconfig 20110522

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
User avatar
FireLove
Posts: 108
Joined: July 27th, 2008, 5:59 pm

Re: keyconfig 20080929

Post by FireLove »

Hey dorando,
I'm using FullScreen more and more, obviously.

And I do navigate (using keyboard alone!) within Tab History, with this code of yours (it drops down a list of Tab's navigated pages)

Code: Select all

document.getElementById("back-forward-dropmarker").open = true;

Yet in FullScreen - AdressBar and other stuff on it is hidden, so this widget couldn't be activated.

Is there is a way around it?
1) a way to activate TabHistory widget without depending on a Widget/AdressBar to be seen ?
2) a way which shows AdressBar + then activates this widget - with one single shortcut ?
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

dpdp wrote:Any way to make this compatibie with Lanikai/Thunderbird 3.1b2pre? Thanks!
Add a boolean 'extensions.checkCompatibility.3.1b' through about:config.

FireLove wrote:1) a way to activate TabHistory widget without depending on a Widget/AdressBar to be seen ?
Try

Code: Select all

document.getElementById("backForwardMenu").openPopupAtScreen(0, 8);  
FireLove wrote:2) a way which shows AdressBar + then activates this widget - with one single shortcut ?
Try

Code: Select all

FullScreen.mouseoverToggle(true);
document.getElementById("back-forward-dropmarker").open = true;  
mad.engineer
Posts: 314
Joined: August 8th, 2006, 4:08 pm

Re: keyconfig 20080929

Post by mad.engineer »

Hi dorando, TB 3.0.4, in the Message Compose Window, the Priority of the message can be changed via the menu, Options->Priority (Highest, High, Normal, ...). [http://img64.imageshack.us/img64/9770/screenshotau.jpg]
Is there any way I can assign some code via Keyconfig to a keyboard shortcut to toggle/select the message priority?. Thanks
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

Try

Code: Select all

var priority = "Highest";

switch(
gMsgCompose.compFields.priority) {
 case "Highest":
  priority = "High"; break;
 case "High":
  priority = "Normal"; break;
 case "Normal":
  priority = "Low"; break;
 case "Low":
  priority = "Lowest"; break;
}

gMsgCompose.compFields.priority = priority;
updatePriorityToolbarButton(priority); 
mad.engineer
Posts: 314
Joined: August 8th, 2006, 4:08 pm

Re: keyconfig 20080929

Post by mad.engineer »

Thank you again. It works great!
garfield2
Posts: 23
Joined: March 29th, 2009, 11:42 am

Re: keyconfig 20080929

Post by garfield2 »

For some reason Copy, Paste, Cut, Undo and Redo have all been "greyed out" and are disabled for me and I can't re-enable them.

Does anyone know of any way to fix this? It'd be greatly appreciated.
hgerstung
Posts: 9
Joined: February 16th, 2004, 12:31 am
Location: Germany

Re: keyconfig 20080929

Post by hgerstung »

Hi everybody!

I am looking for an extension that allows me to activate my different custom views. Keyconfig sounds like it can get the job done, but when I assign ChangeViewByNumber(14) to a key combination, it does not work (View does not change). Any hints how I can accomplish that?

Regards,
Heiko
Amsuke
Posts: 60
Joined: April 3rd, 2010, 8:23 am

Re: keyconfig 20080929

Post by Amsuke »

How can I configure a keyconfig shortcut to duplicate the current *window* in Firefox? Similar to how Ctrl+N works in IE. I don't need to copy the browsing history, I simply want a new window (not tab) to open up with the exact same page as the current one.

Preferably, like the way it works in IE, it would preserve the page position, but that's not as necessary if it's too difficult.
Amsuke
Posts: 60
Joined: April 3rd, 2010, 8:23 am

Re: keyconfig 20080929

Post by Amsuke »

Out of curiosity, is there a repository for keyconfig scripts anywhere? A single site that acts as a library of keyconfig functions, which users can add to (similar to Userscripts.org for GreaseMonkey scripts, although hopefully better executed)?
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

garfield2 wrote:For some reason Copy, Paste, Cut, Undo and Redo have all been "greyed out" and are disabled for me and I can't re-enable them.
These are grayed out because changing them will only change what is displayed in the menu (they are handled elsewhere in the core).

hgerstung wrote:I am looking for an extension that allows me to activate my different custom views. Keyconfig sounds like it can get the job done, but when I assign ChangeViewByNumber(14) to a key combination, it does not work (View does not change). Any hints how I can accomplish that?
Try

Code: Select all

ViewChange(14);  

Amsuke wrote:How can I configure a keyconfig shortcut to duplicate the current *window* in Firefox? Similar to how Ctrl+N works in IE. I don't need to copy the browsing history, I simply want a new window (not tab) to open up with the exact same page as the current one.

Preferably, like the way it works in IE, it would preserve the page position, but that's not as necessary if it's too difficult.
Try

Code: Select all

var tab = gBrowser.duplicateTab(gBrowser.mCurrentTab);
tab.hidden = true;
gBrowser.replaceTabWithWindow(tab);  
Amsuke wrote:Out of curiosity, is there a repository for keyconfig scripts anywhere? A single site that acts as a library of keyconfig functions, which users can add to (similar to Userscripts.org for GreaseMonkey scripts, although hopefully better executed)?
None that I know of (http://kb.mozillazine.org/Keyconfig_extension lists some, but mostly Thunderbird related).
bich_30
Posts: 6
Joined: May 11th, 2010, 12:06 pm

Re: keyconfig 20080929

Post by bich_30 »

I have Thunderbird 3.0.4, how I can use the keyconfig?
It is installed but does not work, I have to do?
Amsuke
Posts: 60
Joined: April 3rd, 2010, 8:23 am

Re: keyconfig 20080929

Post by Amsuke »

Thanks, dorando! Worked like a charm. :)


dorando wrote:
Amsuke wrote:
Out of curiosity, is there a repository for keyconfig scripts anywhere? A single site that acts as a library of keyconfig functions, which users can add to (similar to Userscripts.org for GreaseMonkey scripts, although hopefully better executed)?



None that I know of (http://kb.mozillazine.org/Keyconfig_extension lists some, but mostly Thunderbird related).




It might be a nice idea to pursue, if you're having trouble sleeping one night. :)
dutchrusk
Posts: 6
Joined: November 27th, 2007, 2:44 pm

Re: keyconfig 20080929

Post by dutchrusk »

hey dorando.
any chance you can help a tech-challenged noob like me tweak your great extension? i use my own custom one key shortcuts, assigned through os x system preferences, to activate the pagezipper and tidyread bookmarklets i've dragged to the bookmarks bar. this works great in safari, etc, but keyboard system preferences won't work for some reason in firefox. how can i add these in to my keyconfig?
thanks.
User avatar
Protoplasm
Posts: 73
Joined: August 29th, 2003, 1:43 pm
Location: USA

Re: keyconfig 20080929

Post by Protoplasm »

Also on a Mac and dealing with Snow Leopard's inability to add shortcuts to FF menus. Whenever/wherever i ask about getting remapped keys in FF, this is where I'm directed. However, I can't decipher how to add a keyboard shortcut to a menu item which doesn't already have one. I want a key to pop up the "Add-ons" window.
 Mac Pro 1.1: 2.66 GHz - 7GB - 5.5 TB HD - OS 10.6.4 - FF-Namoroka 3.6.3
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

bich_30 wrote:I have Thunderbird 3.0.4, how I can use the keyconfig?
It is installed but does not work, I have to do?
What does not work? Do you have no Tools > Keyconfig? Is keyconfig not listed in Tools > Add-ons?

dutchrusk wrote:hey dorando.
any chance you can help a tech-challenged noob like me tweak your great extension? i use my own custom one key shortcuts, assigned through os x system preferences, to activate the pagezipper and tidyread bookmarklets i've dragged to the bookmarks bar. this works great in safari, etc, but keyboard system preferences won't work for some reason in firefox. how can i add these in to my keyconfig?
thanks.
You should be able to use any bookmarklet with

Code: Select all

content.location = "javascript:...";  
or (if you added a keyword to the bookmarklet)

Code: Select all

loadURI(getShortcutOrURI('keyword',{})); 

Protoplasm wrote:Also on a Mac and dealing with Snow Leopard's inability to add shortcuts to FF menus. Whenever/wherever i ask about getting remapped keys in FF, this is where I'm directed. However, I can't decipher how to add a keyboard shortcut to a menu item which doesn't already have one. I want a key to pop up the "Add-ons" window.
Try

Code: Select all

BrowserOpenAddonsMgr();  
. You should be able to get most code with

Code: Select all

function getCommand(event) {
 window.removeEventListener("command", arguments.callee, true);
 event.preventDefault();
 event.stopPropagation();

 alert(event.target.getAttribute("oncommand") || event.target.getAttribute("onclick"));
}

window.addEventListener("command", getCommand, true);   
Post Reply