How to fix Conflicting accelerators
Andreas Pakulat
apaku at gmx.de
Tue Jun 16 23:09:43 BST 2009
On 16.06.09 23:55:16, Albert Astals Cid wrote:
> A Dimarts, 16 de juny de 2009, Andreas Pakulat va escriure:
> > On 15.06.09 22:56:44, Albert Astals Cid wrote:
> > > A Dijous, 11 de juny de 2009, Andreas Pakulat va escriure:
> > > > we have an interesting problem in KDevelop because there are two
> > > > conflicting accelerators. KDevelop embeds kate, which has this nice
> > > > search bar with Next and Prev buttons. Kate also assigns accelerators
> > > > to these buttons (Alt+N and Alt+P). Now the problem is that the
> > > > automatic accelerator-assigner (KAcceleratorManager IIRC) in kdelibs
> > > > doesn't know or care about that (probably know because no kate search
> > > > bar is visible during startup). And KDevelop has a "Navigation" menu,
> > > > which gets Alt+N assigned as accelerator via the kdelibs code (one more
> > > > reason why the automatic assignment really should be turned off).
> > >
> > > What does his have to do with automatic assignment? Disabling it would
> > > not solve your problem at all.
> >
> > It would solve this problem because then KDevelop wouldn't have any menu
> > accelerators :)
>
> Great fix!
Yeah, I know the whole dilemma with the auto-assignment.
> > And we get to decide which ones to use for the menu, as
> > opposed to an algorithm that only cares about the menu and not the rest of
> > the application (or that isn't re-run when the GUI changes).
>
> You can choose an accelerator now too, right? Just write Na&vigation and
> that's it.
Oh, didn't know that works.
Andreas
--
Stay away from flying saucers today.
More information about the kde-core-devel
mailing list