Get Firefox’s Ctrl+K Shortcut in Internet Explorer

Most modern browsers implement the Ctrl+K shortcut key for quickly focusing the built-in browser search box—and now you can use the same shortcut in Internet Explorer as well.

After reading about how to implement the Ctrl+L shortcut key in IE, reader Mike took it on himself to improve that script and add a number of other shortcut keys, including Ctrl+K to focus the search box, and Ctrl+Shift+Enter to automatically append “.org” to the end of anything typed into the address bar.

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

#IfWinActive - Windows Internet Explorer ahk_class IEFrame
^k::Send ^e
^l::Send !d
^+Enter::
AutoTrim Off ; Retain any leading and trailing whitespace on the clipboard.
ClipboardOld =
Clipboard = ; Must start off blank for detection to work.
Send {Ctrl Down}ac{Ctrl up}
ClipWait 1
if ErrorLevel ; ClipWait timed out.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Yahoo! Buzz
  • YahooMyWeb
No comments yet.