Vincent van Ravesteijn wrote: > Is it really that bad that there are duplicated accelerators ?
Yes, they are useless in menus (contrary to the dialogs). > First I'm not sure people really often use the accelerators on the context > menus. (Does Linux use the context menu button on the keyboard ?) Yes (to the latter). I certainly cannot provide fix numbers to the former, but we have always tried to make LyX an app that can be driven by keyboard only, and I remember we also have users who find this important. > Second, it > is supported by Qt to have multiple accelerators. Pressing the accelerator > twice jumps to the second occurence. This only works in dialogs. In menus, pressing the accelerator once immediately triggers the assigned action. You have no change to press it twice. > As pointed out earlier by Uwe, this > does not work when a submenu is opened, but in general I don't see this > as the major problem. Rather a slight annoyance. What sense does an accelerator make if you can not access it? > > * use submenu for inherited menu (perhaps only when there are more than > > `n' total lines). > > > > * if the limit would be exceeded, use a submenu for each inherited menu. > > In this case, the accelerators can sty as they are (you probably only > > would need to add a unique accelerator to the submenus heading). > > I hope this is not difficult to accomplish. I don't think so. I do not know the context menu inheritance code (you know better), but I've implemented a method to create unique accelerators for the language switch submenu. You can just take and generalize that code. Jürgen