Mercurial > hg > xemacs-beta
comparison man/lispref/menus.texi @ 5708:8ca881999349
Menu accelerator documentation patch
author | Vin Shelton <acs@xemacs.org> |
---|---|
date | Wed, 02 Jan 2013 11:48:52 -0500 |
parents | 44b0b4ea5cae |
children | 68f8d295be49 |
comparison
equal
deleted
inserted
replaced
5707:5fd1b9a95531 | 5708:8ca881999349 |
---|---|
633 indicating an accelerator key to a user. | 633 indicating an accelerator key to a user. |
634 | 634 |
635 For example, the command | 635 For example, the command |
636 | 636 |
637 @example | 637 @example |
638 (add-submenu nil '("%_Test" | 638 (add-submenu nil '("Te%_st" |
639 ["One" (insert "1") :accelerator ?1 :active t] | 639 ["One" (insert "1") :accelerator ?1 :active t] |
640 ["%_Two" (insert "2")] | 640 ["%_Two" (insert "2")] |
641 ["%_3" (insert "3")])) | 641 ["%_3" (insert "3")])) |
642 @end example | 642 @end example |
643 | 643 |
644 will add a new menu to the top level menubar. The new menu can be reached | 644 will add a new menu to the top level menubar. The new menu can be |
645 by pressing "t" while the top level menubar is active. When the menu is | 645 reached by pressing "s" while the top level menubar is active. When |
646 active, pressing "1" will activate the first item and insert the character | 646 the menu is active, pressing "1" will activate the first item and |
647 "1" into the buffer. Pressing "T" will activate the second item and insert | 647 insert the character "1" into the buffer, pressing "t" will activate |
648 the character "2" into the buffer. Pressing "3" will activate the third item | 648 the second item and insert the character "2" into the buffer, and |
649 and insert the character "3" into the buffer. | 649 pressing "3" will activate the third item and insert the character "3" |
650 into the buffer. | |
650 | 651 |
651 It is possible to activate the top level menubar itself using accelerator keys. | 652 It is possible to activate the top level menubar itself using accelerator keys. |
652 @xref{Menu Accelerator Functions}. | 653 @xref{Menu Accelerator Functions}. |
653 | 654 |
654 @node Keyboard Menu Traversal | 655 @node Keyboard Menu Traversal |