MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Uživatelský manuál Strana 12

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 28
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 11
12
Changing keyboard shortcuts
If the default keyboard shortcuts arent 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. (For
more information, see Dreamweaver Help.) 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 more information, see “About menus.xml
tag syntax” on page 13.
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. (Dont open it
in Dreamweaver.)
4 Look at the Keyboard Shortcut Matrix (available from the Dreamweaver Support Center) and
find a shortcut thats not being used, or one that you want to reassign.
If you reassign a keyboard shortcut, change it on a printed copy of the matrix for future reference.
5 If youre 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 doesnt
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>” on page 15.
If the keyboard shortcut is in use elsewhere and you didnt 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 Windows-only menu item and for a Macintosh-only menu item.
9 Write your new shortcut in the appropriate location in the Keyboard Shortcut Matrix.
Modifying pop-up menus and context menus
Dreamweaver provides pop-up menus and context menus in many of its panels and dialog boxes.
Some context menus are defined in the menus.xml file; others are defined in other XML files. You
can add, remove, or modify items in those menus by hand, though in most cases its better to
write an extension to make such changes. For information on creating extensions that modify
most of these XML files, see Extending Dreamweaver (Help > Extending Dreamweaver).
The following pop-up menus and context menus in Dreamweaver are specified in XML files,
using the same tags as menus.xml:
Data sources (listed in the plus (+) pop-up menu in the Bindings panel) are specified in
DataSources.xml files, in subfolders of the DataSources folder.
Server behaviors (listed in the plus (+) pop-up menu in the Server Behaviors panel) are
specified in ServerBehaviors.xml files, in subfolders of the ServerBehaviors folder.
Zobrazit stránku 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 27 28

Komentáře k této Příručce

Žádné komentáře