keyconfig 20110522
-
- Posts: 14
- Joined: March 9th, 2009, 10:17 am
Re: keyconfig 20110323
Dorando, FYI, the current Thunderbird release update isn't reflected in update.rdf.
-
- Posts: 64
- Joined: June 1st, 2005, 4:52 pm
Re: keyconfig 20110323
Is it possible to assign a key shortcut to "click" the Firefox Button (version 4 or above)?
TIA!
TIA!
-
- Posts: 57
- Joined: October 7th, 2010, 11:14 pm
Re: keyconfig 20110323
Hi dorando,
Can you help me to create a hotkey to toggle Image Animation from normal to none - none to normal?
About:config: image.animation_mode
Thank you, have a nice day xD~
Can you help me to create a hotkey to toggle Image Animation from normal to none - none to normal?
About:config: image.animation_mode
Thank you, have a nice day xD~
-
- Posts: 1203
- Joined: January 9th, 2004, 9:57 am
- Contact:
Re: keyconfig 20110323
You can access it as a XMLDocument withmorat wrote:There are some commands absent like cmd_scrollTop from platformHTMLBindings.xml.
view-source:chrome://global/content/platformHTMLBindings.xml
Is it possible to list these commands as well?
Code: Select all
var request = new XMLHttpRequest();
request.open("GET", "chrome://global/content/platformHTMLBindings.xml", false);
request.send(null);
alert(request.responseXML);
No, but you can Add a new key containingemil9216 wrote:Is it possible to change the default key combination for switching tabs "ctrl+tab" with this combination "alt+~" ?
Code: Select all
gBrowser.tabContainer.advanceSelectedTab(1,true);
Trychirpy_7 wrote:just noted a minor behavioural change:
hitting s would hitherto toggle star / unstar (bookmark) the current tab:Now, unfortunately, the unstar bit does not work anymore.Code: Select all
if(PlacesStarButton._starred) {
StarUI._itemId = PlacesUtils.getMostRecentBookmarkForURI(gBrowser.currentURI);
StarUI.removeBookmarkButtonCommand();
} else {
PlacesCommandHook.bookmarkCurrentPage(false);
}
Code: Select all
if(PlacesStarButton._itemIds[0]) {
StarUI._uriForRemoval = PlacesUtils.bookmarks.getBookmarkURI(PlacesStarButton._itemIds[0]);
StarUI._actionOnHide = "remove";
StarUI.handleEvent({type: "popuphidden", originalTarget: StarUI.panel})
} else {
PlacesCommandHook.bookmarkCurrentPage(false);
}
TryHamid_Y2K wrote:"CopyCurrentURI"
Code: Select all
var ClipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
.getService(Components.interfaces.nsIClipboardHelper);
ClipboardHelper.copyString(content.location);
Using chrome://browser/content/pageinfo/security.js as a base tryHamid_Y2K wrote:"OpenCookieInfo"
Code: Select all
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var win = wm.getMostRecentWindow("Browser:Cookies");
var eTLDService = Components.classes["@mozilla.org/network/effective-tld-service;1"].getService(Components.interfaces.nsIEffectiveTLDService);
var eTLD;
var uri = content.document.documentURIObject;
try {
eTLD = eTLDService.getBaseDomain(uri);
} catch (e) {
eTLD = uri.asciiHost;
}
if (win) {
win.gCookiesWindow.setFilter(eTLD);
win.focus();
} else {
window.openDialog("chrome://browser/content/preferences/cookies.xul", "Browser:Cookies", "", {filterString : eTLD});
}
The code I posted previously works for me in Firefox 4.Hamid_Y2K wrote:"Copy link text"
"copy link location"
If you want to customize the Add-on bar tryHamid_Y2K wrote:"Organize Statusbar""
Code: Select all
BrowserCustomizeToolbar();
Code: Select all
objOSB.Options()
The first post.OzarksCrescentMural wrote:Where can I download a copy of keyconfig that will work in Windows for Firefox 4.0.1?
Nowhere, but see the post from morat.OzarksCrescentMural wrote:Where can I find a list of the Codes too?
Thunderbird 3.1.10 is build on top of XULRunner/Toolkit 1.9.2.17 which is in the covered range.jek60 wrote:Dorando, FYI, the current Thunderbird release update isn't reflected in update.rdf.
See my answer to rpz79.bolidew wrote:Is it possible to assign a key shortcut to "click" the Firefox Button (version 4 or above)?
TryCattleya wrote:Can you help me to create a hotkey to toggle Image Animation from normal to none - none to normal?
About:config: image.animation_mode
Code: Select all
var val = gBrowser.mPrefs.getCharPref("image.animation_mode") == "normal" ? "none" : "normal";
gBrowser.mPrefs.setCharPref("image.animation_mode", val);
Support mozilla.dorando.at through donations/contributions.
-
- Posts: 165
- Joined: March 19th, 2007, 6:24 am
Re: keyconfig 20110323
sweet !
thanks once again to the matrix keymaker
thanks once again to the matrix keymaker
-
- Posts: 14
- Joined: March 9th, 2009, 10:17 am
Re: keyconfig 20110323
dorando wrote:Thunderbird 3.1.10 is build on top of XULRunner/Toolkit 1.9.2.17 which is in the covered range.jek60 wrote:Dorando, FYI, the current Thunderbird release update isn't reflected in update.rdf.
Hm. Not sure why it wouldn't update directly when I upgraded then. I just used MRTechToolkit to mark it as compatible which my standard workaround.
-
- Posts: 57
- Joined: October 7th, 2010, 11:14 pm
Re: keyconfig 20110323
Thank you so much, dorando xD
Hope you will help me again, I have two issues:
- Is it possible to assign a key shortcut to press hotkey, example:
I press Ctrl + U, keyconfig will press Ctrl + S.
- And how to press Enter in keyconfig, I only find something like "cmd_copy", "cmd_paste" but nothing for Enter.
Hope you will help me again, I have two issues:
- Is it possible to assign a key shortcut to press hotkey, example:
I press Ctrl + U, keyconfig will press Ctrl + S.
- And how to press Enter in keyconfig, I only find something like "cmd_copy", "cmd_paste" but nothing for Enter.
-
- Posts: 6435
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110323
@dorando
Thanks for reply.
Here is the finished script in case someone else is interested.
The Keyconfig Thunderbird page is missing 30 commands for the main window.
These 30 commands do not include the commands in the platformHTMLBindings.xml file.
Thanks for reply.
Here is the finished script in case someone else is interested.
Code: Select all
// copy list of commands to clipboard
// some commands are only legal when there is a selection
// or when the focus is anywhere where you can type text
var commands = document.getElementsByTagName("command");
var out = new Array();
var info = Components.classes["@mozilla.org/xre/app-info;1"].
getService(Components.interfaces.nsIXULAppInfo);
var type = document.documentElement.getAttribute("windowtype");
out.push(info.name + " " + info.version, "", type, "");
for (var i = 0; i < commands.length; i++) {
var id = commands[i].getAttribute("id");
var oncommand = commands[i].getAttribute("oncommand");
if (id && oncommand) out.push(id);
}
var req = new XMLHttpRequest();
req.open("GET", "chrome://global/content/platformHTMLBindings.xml", false);
req.send(null);
var doc = req.responseXML;
var handlers = doc.getElementsByTagName("handler");
for (var i = 0; i < handlers.length; i++) {
var command = handlers[i].getAttribute("command");
if (command && out.indexOf(command) == -1) out.push(command);
}
var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"].
getService(Components.interfaces.nsIClipboardHelper);
if (navigator.platform.indexOf("Win")) {
clipboard.copyString(out.join("\n"));
} else {
clipboard.copyString(out.join("\r\n"));
}
alert("done");
The Keyconfig Thunderbird page is missing 30 commands for the main window.
These 30 commands do not include the commands in the platformHTMLBindings.xml file.
-
- Posts: 67
- Joined: April 14th, 2006, 7:15 pm
Keyconfig for Firefox 4
I've looked around ... I don't see anything that explicitly states that keyconfig works in FF 4. Is this the case? Or has the FF team FINALLY integrated the functionality into the product?
Also, using keyconfig or otherwise, is there a way to export a list of all active FF shortcuts, say to a csv file or the like?
Thanks!
Also, using keyconfig or otherwise, is there a way to export a list of all active FF shortcuts, say to a csv file or the like?
Thanks!
- Clefaria
- Posts: 91
- Joined: April 25th, 2011, 3:14 pm
Re: Keyconfig for Firefox 4
How do I properly set up a new keyboard shortcut for opening Firefox (4's) options?
-
- Posts: 1203
- Joined: January 9th, 2004, 9:57 am
- Contact:
Re: keyconfig 20110323
TryCattleya wrote:- Is it possible to assign a key shortcut to press hotkey, example:
I press Ctrl + U, keyconfig will press Ctrl + S.
Code: Select all
var utils = content.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils);
utils.sendKeyEvent("keypress", 0, KeyEvent.DOM_VK_S, Event.CONTROL_MASK);
TryCattleya wrote:- And how to press Enter in keyconfig, I only find something like "cmd_copy", "cmd_paste" but nothing for Enter.
Code: Select all
var utils = content.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_RETURN, 0, 0);
The latest version works with Firefox 4.VibrantLife wrote:I've looked around ... I don't see anything that explicitly states that keyconfig works in FF 4. Is this the case?
Listing all active shortcuts is unlikely, but for listing all enabled <key>s something likeVibrantLife wrote:Also, using keyconfig or otherwise, is there a way to export a list of all active FF shortcuts, say to a csv file or the like?
Code: Select all
var output = [];
for(var i = 0, l = gKeys.length; i < l; i++) {
var key = gKeys[i];
if(key.shortcut != gStrings.disabled)
output.push(gKeys[i].shortcut+"\t\t" + gKeys[i].name);
}
alert(output.join("\n"));
Add a new key containingClefaria wrote:How do I properly set up a new keyboard shortcut for opening Firefox (4's) options?
Code: Select all
openPreferences();
Support mozilla.dorando.at through donations/contributions.
-
- Posts: 67
- Joined: April 14th, 2006, 7:15 pm
Re: keyconfig 20110323
Listing all active shortcuts is unlikely, but for listing all enabled <key>s something like
I did this, added a key, named it "List active shortcuts", and pasted in the code beginning with "var ...". I assigned a shortcut (alt-ctrl-L), closed the keyconfig window, and tried the shortcut. But nothing seems to have happened.
I did not make the shortcut global, as I do not know what effect that will have.
If you have a further suggestion, I would be grateful!
-
- Posts: 4
- Joined: September 24th, 2008, 2:25 am
Re: keyconfig 20110323
can plz u help me make a trigger-shortcut to enable and disable adblock ?
and is there a solution to remove scrolling when you press Space ?
and is there a solution to remove scrolling when you press Space ?
-
- Posts: 1203
- Joined: January 9th, 2004, 9:57 am
- Contact:
Re: keyconfig 20110323
Add a new key to the keyconfig window itself (select it from the dropdown) and press the combination while the keyconfig window is active (the text in the alert is selectable).VibrantLife wrote:I did this, added a key, named it "List active shortcuts", and pasted in the code beginning with "var ...". I assigned a shortcut (alt-ctrl-L), closed the keyconfig window, and tried the shortcut. But nothing seems to have happened.
TryLayl wrote:can plz u help me make a trigger-shortcut to enable and disable adblock ?
Code: Select all
var pref = 'extensions.adblockplus.enabled';
gPrefService.setBoolPref(pref,!gPrefService.getBoolPref(pref));
Add a new key without any code and assign Space to it.Layl wrote:and is there a solution to remove scrolling when you press Space ?
Support mozilla.dorando.at through donations/contributions.