keyconfig 20110522
-
- Posts: 4
- Joined: March 21st, 2010, 6:46 pm
Re: keyconfig 20080929
My issue is that in firefox 3.6, there is no menu for keyconfig. I am completely unable to access any preferences at all, and therefore cannot add that code.
-
- Posts: 1203
- Joined: January 9th, 2004, 9:57 am
- Contact:
Re: keyconfig 20080929
Do you have keyconfig installed and is it enabled in Tools > Add-ons?
-
- Posts: 4
- Joined: March 21st, 2010, 6:46 pm
Re: keyconfig 20080929
Yes. There used to be an entry under tools for keyconfig in older versions of firefox but in 3.6 it is no longer there.
I also modified the install file to increase the maximum version number to allow it to install on firefox 3.6.x.
I also modified the install file to increase the maximum version number to allow it to install on firefox 3.6.x.
-
- Posts: 314
- Joined: August 8th, 2006, 4:08 pm
Re: keyconfig 20080929
Hi dorando,
I tried your other code as well:
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_TAB, 0, 4);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_DOWN, 0, 0);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_TAB, 0, 0);
Still same thing, no errors and no success. I'm also baffled as to why this would not work. But I appreciate your time and thanks for looking at this. As mentioned earlier, this one is not critical for me so I'll just use the mouse for now.
I tried your other code as well:
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_TAB, 0, 4);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_DOWN, 0, 0);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_TAB, 0, 0);
Still same thing, no errors and no success. I'm also baffled as to why this would not work. But I appreciate your time and thanks for looking at this. As mentioned earlier, this one is not critical for me so I'll just use the mouse for now.
-
- Posts: 18
- Joined: July 9th, 2007, 8:41 am
Re: keyconfig 20080929
Hello again Dorando,
Just 2 things:
1. Did you ever get round to adding the showing of 'Spacebar' in the keyconfig as I requested here?
2. Please advise me on how I can add a custom hotkey for the right-click save FF addon of Backgroundimage Saver? I would like to use something like Alt+Enter (Alt+right mouse click) like how Opera has Ctrl+Enter for it's save. Is this possible for keyconfig and what code is required?
please if you could help on these 2 things
Just 2 things:
1. Did you ever get round to adding the showing of 'Spacebar' in the keyconfig as I requested here?
2. Please advise me on how I can add a custom hotkey for the right-click save FF addon of Backgroundimage Saver? I would like to use something like Alt+Enter (Alt+right mouse click) like how Opera has Ctrl+Enter for it's save. Is this possible for keyconfig and what code is required?
please if you could help on these 2 things
-
- Posts: 314
- Joined: August 8th, 2006, 4:08 pm
Re: keyconfig 20080929
Hi dorando,
Can you please update Keyconfig to make it compatible with TB 3.0.4 released today?. Thanks
Can you please update Keyconfig to make it compatible with TB 3.0.4 released today?. Thanks
- FireLove
- Posts: 108
- Joined: July 27th, 2008, 5:59 pm
Re: keyconfig 20080929
Hi dorando,
I've just installed 3.7a4pre ...
everything works fine so far, even Tab Focusing
Except I don't get it to move a focused tab - left or right, as I used to - with Cmnd+Arrows (Ctrl+Arrows on Windows?)
Devs do this again, and change many things (I have no idea which) with 3.7.x
Do you know how to fix it / get desired behavior back ?
Thank you very much for what you do for our community, I think your contribution is greatly under-appreciated.
I've just installed 3.7a4pre ...
everything works fine so far, even Tab Focusing
Code: Select all
if(commandDispatcher.focusedElement == gBrowser.mCurrentTab) {
commandDispatcher.focusedElement.blur();
var element = content.document.elementFromPoint(content.innerWidth / 2, content.innerHeight / 2);
if(element instanceof HTMLFrameElement || element instanceof HTMLIFrameElement)
element.contentWindow.focus();
else if(element instanceof HTMLFrameSetElement)
content.frames[0].focus();
else
content.focus();
} else {
gBrowser.mCurrentTab.focus();
}
Except I don't get it to move a focused tab - left or right, as I used to - with Cmnd+Arrows (Ctrl+Arrows on Windows?)
Devs do this again, and change many things (I have no idea which) with 3.7.x
Do you know how to fix it / get desired behavior back ?
Thank you very much for what you do for our community, I think your contribution is greatly under-appreciated.
-
- Posts: 3
- Joined: March 18th, 2009, 8:52 pm
Re: keyconfig 20080929
we all waiting without any fear for the 3.6.3 compatible release till then, finger crossed mates
- FireLove
- Posts: 108
- Joined: July 27th, 2008, 5:59 pm
Re: keyconfig 20080929
Oh, and another thing seems to be b0rked :
I used to unhide ListAllTab widget which was hidden by my preferred Theme.
I need this widget to summon a List of open Tabs - so that I can see them (even when there's 5-6 of them )
Code that worked on 3.6.x, is
This code doesn't work as well
Theme is GrApple Yummy 3.9.6 for Minefield. Grapple themes used to hide ListAllTab widget until tabstrip is overflowing ... for long time already.
I used to unhide ListAllTab widget which was hidden by my preferred Theme.
I need this widget to summon a List of open Tabs - so that I can see them (even when there's 5-6 of them )
Code that worked on 3.6.x, is
Code: Select all
.tabs-container:not([overflow="true"]) .tabs-alltabs-button {
display: -moz-box !important;
}
This code doesn't work as well
Code: Select all
if(!keyconfig.alltabsPopup) {
keyconfig.alltabsPopup =
gBrowser.mTabContainer.mAllTabsBoxAnimate.parentNode.parentNode.appendChild(document.createElement("popup"));
keyconfig.alltabsPopup.className = "tabs-alltabs-popup";
keyconfig.alltabsPopup.style.visibility = "visible";
}
keyconfig.alltabsPopup.openPopupAtScreen(screen.width, gBrowser.mPanelContainer.boxObject.screenY);
Theme is GrApple Yummy 3.9.6 for Minefield. Grapple themes used to hide ListAllTab widget until tabstrip is overflowing ... for long time already.
-
- Posts: 60
- Joined: April 3rd, 2010, 8:23 am
Re: keyconfig 20080929
I use keyconfig with Firefox 3.6.2
I use the following code:
Page Down:
window.content.document.getElementsByTagName('html')[0].scrollTop+=window.content.document.getElementsByTagName('html')[0].clientHeight-130;
Page Up:
window.content.document.getElementsByTagName('html')[0].scrollTop-=window.content.document.getElementsByTagName('html')[0].clientHeight-130;
This normally works fine, but I ran into a couple of sites where the Page Up/Down keys didn't work at all. Disabling KeyConfig restored normal functionality.
One of the sites this occurs with is this:
http://hosted.ap.org/dynamic/fronts/HOME
Do you know why this code might not work on certain sites, and how I can fix it so that it works on all sites?
I use the following code:
Page Down:
window.content.document.getElementsByTagName('html')[0].scrollTop+=window.content.document.getElementsByTagName('html')[0].clientHeight-130;
Page Up:
window.content.document.getElementsByTagName('html')[0].scrollTop-=window.content.document.getElementsByTagName('html')[0].clientHeight-130;
This normally works fine, but I ran into a couple of sites where the Page Up/Down keys didn't work at all. Disabling KeyConfig restored normal functionality.
One of the sites this occurs with is this:
http://hosted.ap.org/dynamic/fronts/HOME
Do you know why this code might not work on certain sites, and how I can fix it so that it works on all sites?
Last edited by Amsuke on April 4th, 2010, 8:13 am, edited 1 time in total.
-
- Posts: 60
- Joined: April 3rd, 2010, 8:23 am
Re: keyconfig 20080929
Okay, I found one of the sites, in which the keyconfig Page Up/Down customizations don't work - which is Associated Press:
http://hosted.ap.org/dynamic/fronts/HOME
Can anyone help me figure out why this is happening and how to fix it?
http://hosted.ap.org/dynamic/fronts/HOME
Can anyone help me figure out why this is happening and how to fix it?
-
- Posts: 1203
- Joined: January 9th, 2004, 9:57 am
- Contact:
Re: keyconfig 20080929
Assumable whatever you do breaks keyconfig. Note that keyconfig 20080929 installs and works just fine in the latest Firefox releases. Again, since you are using a pre-release, you might want to disable the compatibility enforcing by adding a boolean 'extensions.checkCompatibility.3.6' through about:config and reinstall keyconfig.loochyj wrote:Yes. There used to be an entry under tools for keyconfig in older versions of firefox but in 3.6 it is no longer there.
I also modified the install file to increase the maximum version number to allow it to install on firefox 3.6.x.
, trymad.engineer wrote:I tried your other code as well: [...] Still same thing, no errors and no success.
Code: Select all
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils);
var focusCache = [nodePosition()];
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_TAB, 0, 4);
focusCache.push(nodePosition());
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_DOWN, 0, 0);
focusCache.push(nodePosition());
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_TAB, 0, 0);
focusCache.push(nodePosition());
alert(focusCache.join("\n\n"));
function nodePosition() {
var node = commandDispatcher.focusedElement;
var text = "";
while(node.parentNode && !node.id) {
var current = node.nodeName ;
if(node.className) current+="."+node.className;
text = current + " > " + text;
node = node.parentNode;
}
return node.id +" > " + text;
}
No new release since then.dubsey wrote:Did you ever get round to adding the showing of 'Spacebar' in the keyconfig as I requested here?
AFAIK it is currently impossible to determine over which element the mouse is from within a XULCommandEvent, so keyconfig can't do it alone. You could try to install an empty extension ( http://dev.dorando.at/mozilla/blank.xpi ) and add above the </overlay> in the main.xul ( look for it within Profile/extensions/userxul@nobody/overlays/ after restating Firefox) the following code:dubsey wrote:Please advise me on how I can add a custom hotkey for the right-click save FF addon of Backgroundimage Saver? I would like to use something like Alt+Enter (Alt+right mouse click) like how Opera has Ctrl+Enter for it's save. Is this possible for keyconfig and what code is required?
Code: Select all
<script><![CDATA[ window.addEventListener("mousemove",function(event){
window.mouse = {clientX:event.clientX, clientY:event.clientY}
},false);]]></script>
Code: Select all
var element = content.document.elementFromPoint(mouse.clientX, mouse.clientY)
if(!element) return;
document.popupNode = element;
gContextMenu = new nsContextMenu(document.getElementById("contentAreaContextMenu"), window.getBrowser());
if(gContextMenu.hasBGImage) saveBG();
gContextMenu = null;
Compatibility information was already updated during Release Candidate phase.mad.engineer wrote:Can you please update Keyconfig to make it compatible with TB 3.0.4 released today?.
That seems to be a (unfiled) bug, the relevant code does check for 'aEvent.target == this' while it assumable should check for 'aEvent.target.parentNode == this.tabContainer' due to the changes from bug 347930 (Tab strip should be a toolbar instead).FireLove wrote:I've just installed 3.7a4pre
[...]
I don't get it to move a focused tab - left or right, as I used to - with Cmnd+Arrows (Ctrl+Arrows on Windows?)
Devs do this again, and change many things (I have no idea which) with 3.7.x
Try to Add a new key containingFireLove wrote:Do you know how to fix it / get desired behavior back ?
Code: Select all
gBrowser.moveTabForward();
Code: Select all
gBrowser.moveTabBackward();
Code: Select all
if(!commandDispatcher.focusedElement ||
commandDispatcher.focusedElement.parentNode != gBrowser.tabContainer)
return;
Compatibility information has been updated, it might be necessary to click on Tools > Add-ons > Find Updates (which might incorrectly state at the top that "No updates were found" while "A compatibility update has been applied" as stated below the extension name) if the extensions didn't got re-enabled already.maustyle wrote:we all waiting without any fear for the 3.6.3 compatible release till then, finger crossed mates
Note that it is possible to disable the compatibility enforcing by adding a boolean 'extensions.checkCompatibility.3.6' through about:config.
TryFireLove wrote:Code that worked on 3.6.x, isCode: Select all
.tabs-container:not([overflow="true"]) .tabs-alltabs-button {
display: -moz-box !important;
}
Code: Select all
.tabs-alltabs-button {
display: -moz-box !important;
}
TryFireLove wrote:This code doesn't work as wellCode: Select all
if(!keyconfig.alltabsPopup) {
keyconfig.alltabsPopup =
gBrowser.mTabContainer.mAllTabsBoxAnimate.parentNode.parentNode.appendChild(document.createElement("popup"));
keyconfig.alltabsPopup.className = "tabs-alltabs-popup";
keyconfig.alltabsPopup.style.visibility = "visible";
}
keyconfig.alltabsPopup.openPopupAtScreen(screen.width, gBrowser.mPanelContainer.boxObject.screenY);
Code: Select all
if(!keyconfig.alltabsPopup) {
keyconfig.alltabsPopup = gBrowser.tabContainer._animateElement.parentNode.appendChild(document.createElement("popup"));
keyconfig.alltabsPopup.className = "tabs-alltabs-popup";
keyconfig.alltabsPopup.style.visibility = "visible";
}
keyconfig.alltabsPopup.openPopupAtScreen(screen.width, gBrowser.mPanelContainer.boxObject.screenY);
Seems to work for me, but you might want to tryAmsuke wrote:I use the following code:
Page Down:
window.content.document.getElementsByTagName('html')[0].scrollTop+=window.content.document.getElementsByTagName('html')[0].clientHeight-130;
Page Up:
window.content.document.getElementsByTagName('html')[0].scrollTop-=window.content.document.getElementsByTagName('html')[0].clientHeight-130;
This normally works fine, but I ran into a couple of sites where the Page Up/Down keys didn't work at all. Disabling KeyConfig restored normal functionality.
One of the sites this occurs with is this: http://hosted.ap.org/dynamic/fronts/HOME
Do you know why this code might not work on certain sites, and how I can fix it so that it works on all sites?
Code: Select all
commandDispatcher.focusedWindow.scrollBy(0, 500);
Code: Select all
commandDispatcher.focusedWindow.scrollByLines(40);
-
- Posts: 60
- Joined: April 3rd, 2010, 8:23 am
Re: keyconfig 20080929
dorando wrote:
Seems to work for me, but you might want to tryorCode: Select all
commandDispatcher.focusedWindow.scrollBy(0, 500);
instead.Code: Select all
commandDispatcher.focusedWindow.scrollByLines(40);
I saw similar problems on msnbc's site as well. I don't know why you wouldn't see it, but in any case,
Code: Select all
commandDispatcher.focusedWindow.scrollByLines(40);
worked perfectly.
Thanks!
-
- Posts: 314
- Joined: August 8th, 2006, 4:08 pm
Re: keyconfig 20080929
Hi dorando,
Thanks for updating keyconfig compatibility for TB 3.0.4. I tried your new code. If the cursor is in the address box, I see no errors, nothing in error console eother. If I move the focus via shift+tab to the "To:, Cc:" pull-down menu, pressing the assigned key gives: http://img402.imageshack.us/img402/7541 ... shottb.jpg
As mentioned earlier, I think this shortcut is not critical for me. But I do appreciate your guidance.
Thanks for updating keyconfig compatibility for TB 3.0.4. I tried your new code. If the cursor is in the address box, I see no errors, nothing in error console eother. If I move the focus via shift+tab to the "To:, Cc:" pull-down menu, pressing the assigned key gives: http://img402.imageshack.us/img402/7541 ... shottb.jpg
As mentioned earlier, I think this shortcut is not critical for me. But I do appreciate your guidance.
-
- Posts: 1203
- Joined: January 9th, 2004, 9:57 am
- Contact:
Re: keyconfig 20080929
Ah, that would be due to Quirks mode vs Standards compliance mode (View Page Info > Render Mode).Amsuke wrote:I saw similar problems on msnbc's site as well.
Don't shift+tab to the "To:, Cc:" pull-down menu, the code already does that.mad.engineer wrote:If I move the focus via shift+tab to the "To:, Cc:" pull-down menu, pressing the assigned key gives.