[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Accelerators for KParts
From:       David Sweet <dsweet () chaos ! umd ! edu>
Date:       2000-03-22 15:02:41
[Download RAW message or body]

On Wed, 22 Mar 2000, Simon Hausmann wrote:
> On Tue, 21 Mar 2000, David Sweet wrote:
> 
> > I noticed that none of the accelerator keys are set for kgv_part
> > 
> > Is it ok to have accelerator keys for KParts?  Do I have to do anything
> 
> sure :)
> 
> > special to avoid conflicts with Konqueror's accelerator keys?
> 
> Hmmm, just launch konqy and see if your accel is defined already? :)

Very reasonable solution! ;)

> 
> 
> But, hmmm, yes, you're right, it'd be cool if we had some sort of
> mechanism to "detect" accelerator conflicts. how? :)

Accelerators could go in the XML GUI file, then when the part's XML file
is merged with the shell's XML file conflicts could be resolved according to
some rules.  Rule suggestions:
	1) Accelerators for the containing application (Konqueror) could take
precedence over accelerators for the part so that the part would just have no
accelerator when there is a conflict (there are always at least menu entries
for any application function, so the user won't lose access to the function).  	
	2) Part accelerators could get a SHIFT modifier prefixed to them so
that CTRL+Key_G --> SHIFT+CTRL+Key_G when the part is embedded in a shell that
already uses CTRL+Key_G.
	3) All part accelerators could get a SHIFT prefixed to their
accelerators.

Is it possible to have conflicts between parts?

Dave

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic