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

List:       kde-devel
Subject:    Re: kmix and shortcut keys
From:       Jonathan Riddell <jr () jriddell ! org>
Date:       2004-02-19 23:04:15
Message-ID: 20040219230415.GP5652 () muse ! 19inch ! net
[Download RAW message or body]

On Mon, Feb 02, 2004 at 09:44:34PM +0100, Lubos Lunak wrote:
> On Sunday 01 of February 2004 10:57, ?ric Brunet wrote:
> > On Sun, Feb 01, 2004 at 12:29:12AM +0000, Jonathan Riddell wrote:
> > > What would you rather the volume keys did?  Changeing the volume seems
> > > like the perfect task :)
> > >
> > > It might be nicer is there was a lighter weight way to change the
> > > volume than loading kmix.
> >
> > kmix_applet is this lighter weight way.
> >
> > > Suggestions for a good configuration interface to KMilo are welcome,
> >
> > I don't know what could be a good interface. But if the job of KMilo is to
> > catch keystrokes and react to them, then I think that before taking any
> > action, it should check that the key stroke has not been explicitely
> > defined as a shortcut for another application. Only if the key stroke is
> > not assigned should the default action be taken.
> 
>  It cannot do that. It simply uses KGlobalAccel, which works by establishing a 
> grab on the keys (i.e. nobody else gets the key event). When you configure 
> the keys in KMix(Applet) as well, it's started after KMilo, and fails to get 
> the grabs - and KMilo doesn't find out KMix wants them too.
> 
>  IMHO the right solution would be to drop the KMilo KGlobalAccel-based plugin 
> for the multimedia keys and set up default actions in KMix and KMixApplet, 
> which is where they belong (and won't cause such strange effects like KMix 
> suddenly started).
> 
>  For keyboards which need KMilo's special support for the keys, I think KMilo 
> could act as a proxy for them - it e.g. detects the volume up key being 
> pressed/released, and uses XTest to simulate XF86VolumeUp keypress/keyrelease 
> (which in turn activates KMix).
> 
>  Would there be any problem with that?

That does seem to make sense although I'm not sure how to program
XTest and what happens if KMix/KMixapplet arn't loaded?

Jonathan Riddell

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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