搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Open location dialog (CTRL+L) unavailable in v. 29

  • 12 个回答
  • 8 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

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.

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)}

定位到答案原位置 👍 1

所有回复 (12)

more options

There is a Classic Theme Restorer support thread over here.
http://forums.mozillazine.org/viewtopic.php?f=48&t=2773133&start=1500

more options

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!

more options

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?

more options

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.

more options

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

more options

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.)

more options

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于修改

more options

选择的解决方案

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于修改

more options

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.

more options

You're welcome.

Note that this code also work in the current Firefox 29 release.

more options

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.

more options

No. This is JavaScript and not Java, so the syntax is different. Just use the code as posted as a start.