Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a shortcut that will open a file? 1

Status
Not open for further replies.

mjrh

Instructor
Jun 2, 2001
34
CA
Can some kind soul tell me how (or direct me to where I can learn how)
to create a shortcut that will open a certain file [page] while I am in
DW4.

I have this one file that is in fact my template [but I do not want to
save it as such]. I'd like to be able to do CTRL-something and have it
open anytime I need it while working in DW4.

Thanks,

Michel

PS FYI, I posted the same question to the Dreamweaver Attain list server
 
From the help pages of Ultradev

=========================================================
Changing keyboard shortcuts

If the default keyboard shortcuts aren't convenient for you, you can change or remove existing shortcuts or add new ones. The easiest way to do this is to use the Keyboard Shortcut Editor (see Using the Keyboard Shortcut Editor). However, you can also modify keyboard shortcuts directly in menus.xml if you prefer, though it's much easier to make mistakes entering shortcuts in menus.xml than in the Keyboard Shortcut Editor. For information about the syntax of the menus.xml file, see About menus.xml tag syntax.

To change a keyboard shortcut:

1 Quit Dreamweaver.
2 Make a backup copy of the menus.xml file.
3 Open menus.xml in a text editor such as BBEdit, HomeSite, or Wordpad. (Don't open it in Dreamweaver.)
4 Look at the Keyboard Shortcut Matrix and find a shortcut that's not being used, or one that you want to reassign.
If you reassign a keyboard shortcut, cross it off on a printed copy of the matrix for future reference.
5 If you're reassigning a keyboard shortcut, find the menu item that the shortcut is assigned to, and remove the key="shortcut" attribute from that menu item.
6 Find the menu item to assign or reassign the keyboard shortcut to.
7 If the menu item already has a keyboard shortcut, find the key attribute on that line. If it doesn't already have a shortcut, add key="" anywhere between attributes inside the menuitem tag.
8 Between the double quotation marks of the key attribute, enter the new keyboard shortcut.
Use a plus (+) sign between the keys in a key combination. For more information about modifiers, see the description of the menuitem tag in <menuitem>.
If the keyboard shortcut is in use elsewhere and you didn't remove the other use of it, the shortcut will apply only to the first menu item that uses it in menus.xml.
Note: You can use the same keyboard shortcut for a Macintosh-only menu item and for a Windows-only menu item.
9 Write your new shortcut in the appropriate location in the Keyboard Shortcut Matrix.
================================================== Live long and make your kids suffer..
 
Thank you Cheech.

Unfortunately, I could not figure it out -- I lack JavaScripting experience.

BTW, I also, worked through the excellent on-line lesson &quot;Extending Dreamweaver&quot; at


I was able to create Objects but not Commands. What I could not figure out is how to create a Command that opens a file from within my DW site while I am in DW and which I can then edit. Once I can create such a Command, I can 'attach' it to a keyboard shortcut.

I am still hopeful this can be done. I really could use an example.

Thanks,

Michel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top