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

List:       kde-devel
Subject:    Re: KKey
From:       "Ellis Whitehead" <kde.07 () ellisw ! net>
Date:       2007-02-04 18:37:53
Message-ID: 16bc1c5b0702041037t22b684e9kbada9bfd88e6cd5c () mail ! gmail ! com
[Download RAW message or body]

Hi Paulo,

This response is pretty late, but: the 0x400000 represents CTRL, if I
remember correctly.  0x800000 is probably ALT.  I'm sure that there
are enums or defines for this somewhere... *grin*

Best regards,
Ellis

On 1/28/07, Paulo Moura Guedes <moura@kdewebdev.org> wrote:
> Hi,
>
> Suppose I have a KKey representing "ctrl + tab". The Qt code for that key is
> 4198401 (0x401001).
>
> How can I know, given the key code (4198401), that the key is composed by the
> ctrl modifier and the tab key? In other words, how can I isolate the key from
> the modifier?
>
> BTW, this is because QKeyEvent.key() returns the key without the modifier and
> I have to compare it with the shortcut of an action (which is composed by one
> key which includes the modifier).
>
> Thanks
> Paulo
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
 
>> 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