MozillaZine

keyconfig 20110522

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

Post Posted October 3rd, 2010, 9:33 am

gwhtech wrote:Dorando: Nothing in the Error Console. Thunderbird 3.1.4. Disabled ALL extensions and it still fails. Has no effect on the functioning of the shortcut keys.
Does changing the shortcuts also fail? What does pasting
Code: Select all
alert(top.keyconfig); 
into the Error Console report? Do the disabled shortcut appear as disabled in keyconfig after restart?

mantra wrote:can i reset all the shortcuts i edited?
i mean for example i forget some keys i edited

can i reset all the shortcuts to default?
In Tools > Options > Advanced > General > Config Editor… (Strumenti > Opzioni… > Avanzate > Generale > Editor di configurazione…) you can filter for keyconfig prefs to see those you've changed.

OzarksCrescentMural wrote:What's the keyconfig command for closing a window?
Try
Code: Select all
BrowserTryToCloseWindow()  
OzarksCrescentMural wrote:I found this to duplicate a tab, but it's not working. Does anyone have the right command to Duplicate the Current Tab?

gBrowser.duplicateTab(gBrowser.mCurrentTab);
gBrowser.duplicateTab doesn't exist in 2.0.0.x without extensions (it was added in 3.0.x IIRC), but you could try something like
Code: Select all
var oldHistory = gBrowser.webNavigation.sessionHistory;

gBrowser.selectedTab = gBrowser.addTab("about:blank");

var newHistory = gBrowser.webNavigation.sessionHistory;

newHistory.QueryInterface(Components.interfaces.nsISHistoryInternal);
        
for 
(var i = 0, l = oldHistory.count; i < l; i++)
 newHistory.addEntry(oldHistory.getEntryAtIndex(i, false), true);

if(
oldHistory.count)
 gBrowser.webNavigation.gotoIndex(oldHistory.index);  
OzarksCrescentMural wrote:I'm curious what the actual command is, since you can't see the commands for the ones that were already there.
Double clicking or using the misnamed context menu > Edit this key should show you the code.

Cattleya
 
Posts: 57
Joined: October 7th, 2010, 11:14 pm

Post Posted October 7th, 2010, 11:18 pm

Help me, I want to add a key that can Temporaty On/Off Request Policy, but It seems like too hard for me.

Request Policy: https://addons.mozilla.org/en-US/firefox/addon/9727/

Someone can help me, thank so much.

OzarksCrescentMural
 
Posts: 20
Joined: July 23rd, 2010, 5:18 pm

Post Posted October 7th, 2010, 11:35 pm

Ooh, thanks for the double-clicking clue. That does open the ones that are already assigned since they don't have an Edit this Key option.

OzarksCrescentMural
 
Posts: 20
Joined: July 23rd, 2010, 5:18 pm

Post Posted October 7th, 2010, 11:42 pm

Once I learned the double-click and could open the default duplicate tab, I could see that the code is this:

duplicateTab.duplicateTab('tab', null, event);

And it works. Lots less code than the one you provided above. Thank you though.

But another one I can't get to work is to go directly to a web page:

I used this:

gBrowser.loadURI('http://forums.mozillazine.org');");

But it's not working. Any clue what I need. Thank you!

OzarksCrescentMural
 
Posts: 20
Joined: July 23rd, 2010, 5:18 pm

Post Posted October 7th, 2010, 11:51 pm

Oh yeah, is there a way to set a keyboard shortcut in keyconfig to go through a menu? This is what I want to do.

Tools - Foxpad Suite - Text Editor

Thanks a lot.

Cattleya
 
Posts: 57
Joined: October 7th, 2010, 11:14 pm

Post Posted October 8th, 2010, 6:36 am

Cattleya wrote:Help me, I want to add a key that can Temporaty On/Off Request Policy, but It seems like too hard for me.

Request Policy: https://addons.mozilla.org/en-US/firefox/addon/9727/

Someone can help me, thank so much.

Pls help me, it is very important with the new version of my Firefox portable. Thank!

Cattleya
 
Posts: 57
Joined: October 7th, 2010, 11:14 pm

Post Posted October 9th, 2010, 6:00 pm

Cattleya wrote:
Cattleya wrote:Help me, I want to add a key that can Temporaty On/Off Request Policy, but It seems like too hard for me.

Request Policy: https://addons.mozilla.org/en-US/firefox/addon/9727/

Someone can help me, thank so much.

Pls help me, it is very important with the new version of my Firefox portable. Thank!

Bump !

tonymec

User avatar
 
Posts: 731
Joined: October 15th, 2004, 2:58 am
Location: Ixelles (Brussels Capital Region, Belgium)

Post Posted October 9th, 2010, 6:25 pm

Cattleya, be patient. Re-posting the same message again and again at short intervals will get you nowhere (and I mean literally nowhere: if you make yourself obnoxious enough you may be treated as spammers are, i.e., removed).
Best regards,
Tony

mantra
 
Posts: 330
Joined: September 29th, 2010, 7:21 am

Post Posted October 9th, 2010, 10:04 pm

dorando wrote:
mantra wrote:can i reset all the shortcuts i edited?
i mean for example i forget some keys i edited

can i reset all the shortcuts to default?
In Tools > Options > Advanced > General > Config Editor… (Strumenti > Opzioni… > Avanzate > Generale > Editor di configurazione…) you can filter for keyconfig prefs to see those you've changed.


thanks Dorando
under the filter
Code: Select all
keyconfig prefs
i find nothing :(
http://www.pcmech.com/article/clearing- ... he-how-to/
windows firefox 49.0.2 ,thunderbird 45.4 and under linux , firefox and thunderbird are always updated

tonymec

User avatar
 
Posts: 731
Joined: October 15th, 2004, 2:58 am
Location: Ixelles (Brussels Capital Region, Belgium)

Post Posted October 10th, 2010, 5:02 am

mantra: the filter is just
Code: Select all
keyconfig.
Best regards,
Tony

dorando
 
Posts: 1203
Joined: January 9th, 2004, 9:57 am

Post Posted October 10th, 2010, 5:25 am

Cattleya wrote:Help me, I want to add a key that can Temporaty On/Off Request Policy, but It seems like too hard for me.

Request Policy: https://addons.mozilla.org/en-US/firefox/addon/9727/
Try
Code: Select all
requestpolicy.overlay.toggleTemporarilyAllowAll(event);  

OzarksCrescentMural wrote:Lots less code than the one you provided above. Thank you though.
If you've an extensions installed which provides such a function, it sure is.
OzarksCrescentMural wrote:gBrowser.loadURI('http://forums.mozillazine.org');");
Try
Code: Select all
gBrowser.loadURI('http://forums.mozillazine.org');   
OzarksCrescentMural wrote:Tools - Foxpad Suite - Text Editor
Try
Code: Select all
showFox() 

Cattleya
 
Posts: 57
Joined: October 7th, 2010, 11:14 pm

Post Posted October 10th, 2010, 6:32 am

Thank yoo so much, Dorando! It work like a charm.
Many thanks! Image

OzarksCrescentMural
 
Posts: 20
Joined: July 23rd, 2010, 5:18 pm

Post Posted October 10th, 2010, 5:40 pm

You're a genius again, dorando. My URL opens fine and so does Foxpad. Can't believe how short that code for Foxpad is. Cracks me up that I used to have to go through all those silly menu levels and that short little string opens it up in a sec. Thank you as always! You've made my job so simple.

OzarksCrescentMural
 
Posts: 20
Joined: July 23rd, 2010, 5:18 pm

Post Posted October 12th, 2010, 5:01 pm

You're right that was an extension I had for that shortened duplicate tab code and when I deleted the add-on and lost that code, I tried yours:

var oldHistory = gBrowser.webNavigation.sessionHistory;

gBrowser.selectedTab = gBrowser.addTab("about:blank");

var newHistory = gBrowser.webNavigation.sessionHistory;

newHistory.QueryInterface(Components.interfaces.nsISHistoryInternal);

for (var i = 0, l = oldHistory.count; i < l; i++)
newHistory.addEntry(oldHistory.getEntryAtIndex(i, false), true);

if(oldHistory.count)
gBrowser.webNavigation.gotoIndex(oldHistory.index);

Works perfect!

Thank you.

hllwn
 
Posts: 54
Joined: March 6th, 2010, 9:52 pm

Post Posted October 15th, 2010, 7:06 am

dorando wrote:
hllwn wrote:Is there any workaround possible with keyconfig for Bug 78414?
Nope. You might be able to use an external program like AutoHotkey to achieve what you want.


It's been long time since I asked this. I'm using AutoHotkey. Could you please tell me how I can do that with AutoHotkey?

Thanks in advance.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: Google [Bot] and 1 guest