Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd switch to Firefox in a heartbeat if I could somehow focus the URL bar with Cmd+D instead of Cmd+L (years of muscle memory with Alt+D on Linux previously).

Other browsers have a menu entry for this (File -> Open Location... in Chrome) so keyboard shortcuts can be switched in the Keyboard settings but Firefox doesn't have this. :|

I've tried various methods without success. If anyone had a working solution I'd be very grateful.



I think it may be possible to change browser shortcuts with a custom UserChrome.js but it is very much going down a nonstandard path.


I've tried various add-ons as well as modifying omni.ja (requires re-zipping it on Linux because zip is compiled with different flags on Mac making the omni.ja not work with FF).

This issue requires action from Mozilla, there are no user solutions as far as I'm aware.


I'm on Windows 10 with FF right now and Alt+D just worked for me, along with Cmd+L and F6 as other have said. I think your muscle memory should be just fine. Time to switch!


Time to switch to Windows? :o

Edit: I moved off Windows around 2005 followed by a decade of Linux and since then Mac.


Oh haha I assumed windows since you said you used to be on linux, and Mac doesn't have an Alt key! My mistake. Well at the very least it seems there are FF plugins that allow you to modify shortcuts, so you could probably rebind Option+D to the same control as Cmd+L/F6 and that might work.


You can do this with karabiner-elements (https://karabiner-elements.pqrs.org/) by remapping cmd-l to cmd-d. I believe you can even add a condition to make the mapping only active in firefox, but I haven't tested that.

Here is a rule that does it (only for left command, but that's probably sufficient): https://genesy.github.io/karabiner-complex-rules-generator/#...


Option+D would be the analogue on Mac.

This might work: https://addons.mozilla.org/en-US/firefox/addon/shortkeys/


> Option+D would be the analogue on Mac.

For me it's "the key to the left of the spacebar" in terms of muscle memory, so Cmd on Mac.

Tried it, as well as modifying omni.ja... From the add-on page (I tried it):

> shortkeys cannot override Firefox default shortcuts



Just press F6 and it'll focus into the URL bar


If I recall, F6 should get what you’re after.


As I said I want it specifically to be Cmd+D (instead of the default Cmd+L).


It would be pretty trivial to write an extension that does that.


I don't think Firefox extensions can do this sort of thing.


Yea you’re right. Looks like they removed the ability of extensions to do that back in 2017. Sad :(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: