keyconfig 20110522

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

ollydbg23 wrote:HI, I download the latest add on from http://www.internet7.com/addons/
The latest versions of my extensions are available from http://mozilla.dorando.at/.

ollydbg23 wrote:So, what's the command with the menu item "watched threads with unread".
Try

Code: Select all

goDoCommand('cmd_viewWatchedThreadsWithUnread') 
ollydbg23
Posts: 96
Joined: April 11th, 2008, 6:42 pm

Re: keyconfig 20080929

Post by ollydbg23 »

Thanks for the QUICK response! :D
OK, it works when I add a shortcut key to this menu item. Thank you very much.
Another question is Where can I find more "command list" of the other menus, I want to add some other menu for shortcut key.

Thanks for your add-on!
User avatar
FireLove
Posts: 108
Joined: July 27th, 2008, 5:59 pm

Re: keyconfig 20080929

Post by FireLove »

dorando wrote:Try

Code: Select all

gBrowser.mTabContainer.mAllTabsPopup.showPopup(); 

Thanks, works as advertised :D
User avatar
stevvie
Posts: 220
Joined: June 12th, 2007, 9:21 am

Re: keyconfig 20080929

Post by stevvie »

gBrowser.mTabContainer.advanceSelectedTab(1,true);

gBrowser.mTabContainer.advanceSelectedTab(-1,true);

BrowserNumberTabSelection(event, 0);

Thanks dorando these were PERFECT, I just love this plugin.
Intel 3750k@4.3Ghz, Asrock Z77 Extreme4, 2X8Gb g.skill DDR3 2400,R9 280X,Benq 24inch monitor, Kingstone hyperX 240gb, -2X Samsung F3 1TB (raid0) with a 60 gib ssd cache, Segate 2TB, -Optiarc 7200s, -ADSL BT infinity 80mb
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

ollydbg23 wrote:Another question is Where can I find more "command list" of the other menus, I want to add some other menu for shortcut key.
The MozillaZine Knowledge Base has some listed, otherwise in the source or with DOM Inspector.
ollydbg23
Posts: 96
Joined: April 11th, 2008, 6:42 pm

Re: keyconfig 20080929

Post by ollydbg23 »

dorando wrote:
ollydbg23 wrote:Another question is Where can I find more "command list" of the other menus, I want to add some other menu for shortcut key.
The MozillaZine Knowledge Base has some listed, otherwise in the source or with DOM Inspector.

Thank you dorando.
The MozillaZine Knowledge Base has a full list of commands in the menus. That's enough. I had made a mistake, that, I was trying to google with " cmd_viewWatchedThreadsWithUnread " but get few result. :( ,But If I google with" viewWatchedThreadsWithUnread", The first result URL points to MozillaZine Knowledge Base .

Thank you. Your add-on is great!
kuoirad
Posts: 8
Joined: July 12th, 2008, 4:12 pm

Re: keyconfig 20080929

Post by kuoirad »

dorando,

A question for you about a problem I'm having with keyconfig in Thunderbird.

To emulate pine keybindings that I like, I've mapped the "r" key to goDoCommand('cmd_replyall'). It works fine for its intended behavior, but there's an unintended and annoying consequence. If I go up to the search bar and type anything that has an r in it, I get a "reply to all" action on the currently highlighted message. This behavior does not replicate for other keys I've mapped (d, c, f, b).

Was wondering if you had any ideas on this.
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

kuoirad wrote:Was wondering if you had any ideas on this.
Not really, single characters shouldn't reach the <key> if a form element has the focus.

Anything in the Tools > Error Console (set javascript.options.showInConsole to true in about:config)?

You could add something like

Code: Select all

if(commandDispatcher.focusedElement instanceof HTMLInputElement) return; 
above the code you use so it won't run if a text box has the focus.
kuoirad
Posts: 8
Joined: July 12th, 2008, 4:12 pm

Re: keyconfig 20080929

Post by kuoirad »

dorando wrote:
kuoirad wrote:Was wondering if you had any ideas on this.
Not really, single characters shouldn't reach the <key> if a form element has the focus.

Anything in the Tools > Error Console (set javascript.options.showInConsole to true in about:config)?


No, nothing.

You could add something like

Code: Select all

if(commandDispatcher.focusedElement instanceof HTMLInputElement) return; 
above the code you use so it won't run if a text box has the focus.


Thank you, that worked. Oddly, I had to add it on to my keybinding for Forward (f) as well, but my other keybinds appear to work without extra "help".

Thanks for your help. If you want to investigate this further and I can be of help, please let me know.
KossTB
Posts: 4
Joined: December 16th, 2008, 3:26 pm

Re: keyconfig 20080929

Post by KossTB »

Great extension dorando!

Is there a way to insert a predefined string of characters (or just one) using keyconfig? i.e. email@wherever.com

Use would be entering a username into a form box.

Thanks
sridhar
Posts: 184
Joined: June 18th, 2004, 2:54 pm
Contact:

Re: keyconfig 20080929

Post by sridhar »

Just wanted to share that keyconfig works in Firefox v3.05 after overriding the max version compatibility (I use MR Tech Toolkit).
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

KossTB wrote:Great extension dorando!

Is there a way to insert a predefined string of characters (or just one) using keyconfig? i.e. email@wherever.com

Use would be entering a username into a form box.

Thanks
Try

Code: Select all

var editor = (commandDispatcher.focusedElement instanceof Components.interfaces.nsIDOMNSEditableElement) ?
              commandDispatcher.focusedElement.editor : null;

if(
editor) {
 editor instanceof Components.interfaces.nsIPlaintextEditor;
 editor.insertText("email@wherever.com");
}
 
KossTB
Posts: 4
Joined: December 16th, 2008, 3:26 pm

Re: keyconfig 20080929

Post by KossTB »

Great!! It works.

Thanks for your help dorando!!!
dpdp
Posts: 37
Joined: September 1st, 2003, 8:36 am

Re: keyconfig 20080929

Post by dpdp »

Following advice I got here, I have been using the following Keyconfig script to toggle between All Folders and Unread Folders view:

if(gCurrentFolderView == 0)
loadFolderView(1);
else loadFolderView(0);

This no longer works under Thunderbird 3.0b1. Any suggestions?
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20080929

Post by dorando »

dpdp wrote:Following advice I got here, I have been using the following Keyconfig script to toggle between All Folders and Unread Folders view:

if(gCurrentFolderView == 0)
loadFolderView(1);
else loadFolderView(0);

This no longer works under Thunderbird 3.0b1. Any suggestions?
Try

Code: Select all

gFolderTreeView.mode = gFolderTreeView.mode == 'all' ? 'unread' : 'all'; 
Post Reply