Open location dialog (CTRL+L) unavailable in v. 29
I don't display the location bar, and I recently installed the extensions "Classic Theme Restorer" and "Tabs on Bottom" to make that happen, giving me more vertical space in which to display webpages.
In previous versions of Firefox — and without displaying the location bar — I was always able to get to a website through CTRL+L, which displayed a dialog allowing me to type in a website, browse files, and decide whether I wanted Firefox to open in current tab, new tab, or new window. I think more than just myself would like that function restored to the current version 29.
被選擇的解決方法
You can use the keyconfig extension or another extension that allows to assign code and assign this code to a key:
var E=document.getElementById('nav-bar'); if(E.hasAttribute("collapsed")){E.removeAttribute('collapsed')} else{E.setAttribute('collapsed',true)}
- http://kb.mozillazine.org/Keyconfig_extension
- http://dorando.emuverse.com/projects/mozilla/readme.html
所有回覆 (12)
There is a Classic Theme Restorer support thread over here.
http://forums.mozillazine.org/viewtopic.php?f=48&t=2773133&start=1500
Didn't see any solution. Would just like the Firefox team to restore previous functionality of CTRL+L to open a dialog rather than to have to use a bar that takes up space. Also would like to have the "Open Location" file menu item restored so that it displays a dialog.
I can disable "Classic Theme Restorer" to have the cursor jump into the location bar when using CTRL+L, but that isn't helpful, either.
Please, restore the Open Location dialog. I found it very useful and easy to use — especially without having to touch that damn mouse!
Sorry, I can't help you with changes that were made to Firefox 29 by the Classic Theme Restorer extension - I don't use it. {Ctrl + L} still works for me in Firefox 29 without CTR, so I guess that extension "mucked up" that keyboard combo.
Why not ask in the CTR support thread?
My issue is with the FF 29 "improvements". The Open Location dialog — whether access through the File menu item or CTRL+L —has been a useful part of Firefox for many years, through more than twenty upgrades. For the developers to suddenly decide that everyone must use the location bar is a case of them not following the adage, "If it ain't broke, don't fix it." The dialog was easy to use, clean in appearance, easy to navigate through, worked for opening local files as well as network locations, and disappeared when you press enter (clicked OK). Clean. Simple. Useful. Consistent.
If one of the DLLs still contains the code for the Open Location dialog, it shouldn't be too much of a problem for someone (not me, sorry) to develop an extension that would restore this. But the best solution is for the Firefox developers to restore the Open Location dialog to the next interim or minor-version release. Put it in the File item of the menu bar. Restore CTRL+L to this OpenDialog function or assign something similar.
I have done some programming in the past, but have neither the time or expertise to deal with it now.
I will also post this reply on the CTR thread. Maybe someone can take it and run with it.
As you no longer can hide the Navigation Toolbar that has the location bar, the devs have removed support for opening a replacement location bar that you could previously open via Ctrl+L when the location bar wasn't visible (File > Open Location is gone as well).
- bug 953124 - [Australis] Remove the "Open Location" dialog (openLocation.xul)
Please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
Although not completely understanding the specific syntax, I see what you mean. So this means that if one wishes to have the opendialog function so that a dialog opens instead of the cursor moving to the location bar, one would need to develop or modify an add-on or extension to perform this?
As I mentioned, maybe the developer of the Classic Theme Restorer (CTR) extension might be able to do this — but is that possible without a supportive function or procedure it being in the Mozilla .js file or in a .dll?
(CTR hides the bar, showing only a very tiny sliver, but does not disable the function of the .js function that you reference, cor-el. I've noticed that focus goes to the hidden bar. In spite of the inconvenience of not having the location bar or a dialog, CTR gives me enough more screen space that, for me, it's worth the inconvenience.)
In Waterfox, one can hide the Navigation bar. I'd still love to see this tweaked a bit so that a keystroke could be assigned to toggle the Navigation bar display on and off (and, of course, I'd love my Open Location/File dialog back, but I guess that ain't gonna happen...), but the Navigation bar takes up less vertical space in Waterfox and it can be undisplayed through the View -> Toolbars menu item.
Add a navigation-bar-display toggle keystroke to Waterfox and I'll be happy. Any F-keys available for that (like in Adobe Reader)? Maybe F8 — doesn't seem to do anything now.
由 MarkVictor 於
選擇的解決方法
You can use the keyconfig extension or another extension that allows to assign code and assign this code to a key:
var E=document.getElementById('nav-bar'); if(E.hasAttribute("collapsed")){E.removeAttribute('collapsed')} else{E.setAttribute('collapsed',true)}
由 cor-el 於
Thanks, Cor-el, for the code. I should be able to read the documents to which you have provided links and enhance my experience with FF and WF. I'll let you know if I have any problems.
You're welcome.
Note that this code also work in the current Firefox 29 release.
I'm new to Java and don't know the syntax rules, so please be kind to me regarding this question:
Does the procedure you posted need an "EndIf" at the end?
Many thanks.
No. This is JavaScript and not Java, so the syntax is different. Just use the code as posted as a start.