Work

Get Firefox’s Ctrl+L Shortcut In Internet Explorer

Every modern browser implements the Ctrl+L shortcut key for easy access to the location bar—and now you can use the same shortcut in Internet Explorer as well.

Reader Joe used his ubergeeky AutoHotkey hacking skills to create a script that that selects the location bar when you press the Ctrl+L shortcut key combination—normally using that combination will trigger the Open dialog box if you are using Internet Explorer. It’s a simple tweak, but if you are anything like me the glaring lack of that shortcut key combination really stings the few times I’m forced to use IE.

To use his technique, simply create a new AutoHotkey script or add the following to your existing script:

#IfWinNotActive, ahk_class MozillaUIWindowClass ;This is so we don’t clobber Firefox’s shortcut
^L::
MouseGetPos original_X, original_y
ControlGetPos new_x, new_y,,, Edit1, A
MouseMove new_x + 5, new_y, 0
Send {Click}
MouseMove original_x, original_y, 0
Send {Home}
Send +{End}
return

This script will essentially simulate clicking in the location bar and selecting all of the text, but you could alternatively use the following script, which binds the Ctrl+L hotkey to send the F6 key instead:

#IfWinNotActive, ahk_class MozillaUIWindowClass
^L::Send {F6}
Return

The script works great in Internet Explorer, but it could be improved by a helpful reader to exclude other applications so it doesn’t cause weird behaviours when using the shortcut combination in another application. If you’ve got something better, let us know in the comments. Thanks, Joe!

For more, check out how to make Win+E open the folder of your choice, learn how to use Caps Lock for hand-friendly navigation, and see how Taskbar Overlord tweaks the Windows 7 taskbar.

Comments (AU Comments | US Comments)

  • strider

    OR you could just hit ALT-D which has been the shortcut on all browsers since the dawn of time..

  • Pat

    Yeah…ALT+D does the same thing…no script required! and its an easier shortcut to actually do…ctrl+l is too awkward

  • bugwan

    As Sam mentioned earlier – F6 gets you to the address bar in IE and Windows Explorer. One button – too easy!

Post Your Comments

Got something to say? There are two ways to comment:

1. Guests

Click here to comment instantly.

2. Facebook Users

Click below to comment using your Facebook account.

We're looking for comments that are interesting, substantial or highly amusing. If your comments are excessively self-promotional, obnoxious, or even worse, boring, you will be banned from commenting. All comments are moderated.