keyconfig 20110522
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
Dimanish wrote:Hello, what is the /* CODE */ to show/hide main menu bar in Firefox? (there File, Edit, View, Bookmarks, ...)
Code: Select all
var mb = document.getElementById("toolbar-menubar"); mb.collapsed = !mb.collapsed;
-
- Posts: 24
- Joined: December 22nd, 2005, 9:39 am
zeniko wrote:Dimanish wrote:Hello, what is the /* CODE */ to show/hide main menu bar in Firefox? (there File, Edit, View, Bookmarks, ...)Code: Select all
var mb = document.getElementById("toolbar-menubar"); mb.collapsed = !mb.collapsed;
Thank you very much.
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
What about getting it directly from the developer's site (linked to at the very beginning of this thread)?
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
Code: Select all
Components.classes["@mozilla.org/widget/clipboardhelper;1"]
.getService(Components.interfaces.nsIClipboardHelper)
.copyString(content.document.title);
-
- Posts: 947
- Joined: August 24th, 2005, 12:23 pm
zeniko wrote:Code: Select all
Components.classes["@mozilla.org/widget/clipboardhelper;1"]
.getService(Components.interfaces.nsIClipboardHelper)
.copyString(content.document.title);
thanks. i now have my very first custom key
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
Code for toggling caret browsing mode:
To disable this the F7 shortcut, you'll have to intercept the key before it hits the content area. One way would be to stop it already at the window (see the following code). If you wanted, you could add code for a different action right at the same place:
This code can be run through keyconfig (for testing), but if you want it to be permanent, you'll have to wrap it inside a simple extension.
Code: Select all
var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService) .getBranch("accessibility."); prefs.setBoolPref("browsewithcaret", !prefs.getBoolPref("browsewithcaret"));
To disable this the F7 shortcut, you'll have to intercept the key before it hits the content area. One way would be to stop it already at the window (see the following code). If you wanted, you could add code for a different action right at the same place:
Code: Select all
window.addEventListener("keypress", function(aEvent) {
if (aEvent.keyCode == aEvent.DOM_VK_F7) {
aEvent.preventDefault();
}
}, false);
This code can be run through keyconfig (for testing), but if you want it to be permanent, you'll have to wrap it inside a simple extension.
-
- Posts: 2
- Joined: January 21st, 2006, 4:31 pm
I have a problem with the newest version:
the cursor keys, TAB and PageUp/PageDown stopped working. E.g. I can get to the address-bar with Ctrl-l, but I can't get off of it with TAB. They only work again while I'm typeaheading. They stop working again when the typeahead-window closes. I can rebind the cursor keys and PageUp/PageDown with "functions for keyconfig" but I cannot rebind the TAB key the way it used to work: accessibility.tabfocus = 3.
I really love this extension. How can I get this to work?
the cursor keys, TAB and PageUp/PageDown stopped working. E.g. I can get to the address-bar with Ctrl-l, but I can't get off of it with TAB. They only work again while I'm typeaheading. They stop working again when the typeahead-window closes. I can rebind the cursor keys and PageUp/PageDown with "functions for keyconfig" but I cannot rebind the TAB key the way it used to work: accessibility.tabfocus = 3.
I really love this extension. How can I get this to work?