Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

override-menu-bars

Arguments: comtab

This comtab property determines which command is executed when the user types the keychord of a comtab command, if that keychord is also a global keyboard shortcut or a shortcut in a menu-bar that applies to the same window.

If this property is true, then the comtab's key bindings will take precedence over menu-bar shortcuts (see event-synonym) and global shortcuts (see add-global-keyboard-accelerator). If it is nil, then menu-bar shortcuts and global shortcuts take precedence over the comtab. The default value is nil.

override-menu-bars returns the current value of this property for a specified comtab (command table). The value may be set either by passing the :override-menu-bars initarg to make-instance when creating the comtab, or any time later by calling (setf override-menu-bars). The default value is nil.

In the IDE Editor

The IDE editor is a case where the override-menu-bars option has been enabled. When the IDE editor is selected, the editor's comtab (see *text-edit-comtab*) and the IDE menu-bar's keyboard shortcuts are both in effect. The IDE menu-bar defines many keyboard shortcuts, and so if you wanted to add some custom editing commands to the IDE editor, then you may find it difficult to find keychords that are not already used by the editor's comtab or the IDE menu-bar. But since the override-menu-bars property of *text-edit-comtab* is t, it can override shortcuts that are in the IDE menu-bar. Typing reused keychords in the IDE editor will invoke the editor's comtab commands, whereas typing the keychords in any other IDE window will invoke the IDE menu-bar commands. See *text-edit-comtab* for an example.


Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version