Depends on what
OS your using...
Your best bet to get this done on windows is to use the following code:
(Keyboard Function here):: run, "http://URL-example.com/*"
$^a & n::
Save as .ahk Then run and press
N to test/use.
You can also compile this script into a
.exe file using
ahk2exe.exe found inside of
That example opens
google.com in your default browser on keyboard function:
chrome OS users should be expecting
extension hot-keys soon.
To make your extension have new tab capabilities just make the following files:
"name": "New Tab",
"description": "Press Alt+X to get started",
"default_title": "New Tab",
Change the parts after "
mac":, And especially "
chromeos": to whatever shortcut you want (Note: CANNOT be a built in browser function listed here)
document.getElementsByTagName('head').onload = window.open('http://google.com', '_blank');
This second method works for
chrome OS and potentially
linux as long as they are allowed to be ran in the background. See Here for how to install your extension.
Last things last:
Mac OS Potentially will react fine to the extension option. However you must not
Q the window or else the shortcut will be null in void. I also know that
Mac OS has a built in function for keyboard shortcut customization; However I am not familiar with that so you would have to mess around with that.