[Help] Is this wrong usage or a bug of global shortcut?

Jekyll Wu adaptee at gmail.com
Sun Dec 25 02:15:01 GMT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I am trying to fix bug 259539. The real problem is some global
shortcuts of klipper keep resetting to 'None' after it restarts. Here
is one problematic line:

    action->setGlobalShortcut(KShortcut(.....), KAction::DefaultShortcut);

The intention of that line seems to define default key sequence but
does not use it at the very first time. However, the actual result is
that global shortcut never respects what the user has customized last
time and reset to 'None' after klipper restarts.

So my question is : is this the wrong usage of setGlobalShortcut(), or
a bug of setGlobalShortcut() ? I guess it is the wrong usage, but I
need some confirmation since I'm not familiar with global shortcuts.

It is easy to fix. I just want to get some confirmation before doing
anything stupid.

Knotes has similar problems due to same reason . See bug 239078,
208641, and 268897(They are essentially the same).

Jekyll


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJO9ockAAoJEOemZ9znWXlAT9IP+wYv00Bxv9sySzYIsnZihUp2
LHSdezX3YJYvOX3qxQwPyE4O34DjEkNFnBz7u0iJc9BFgDsMh2/Sd+imI8kh/vQk
Udn6O8CmGT8nAlq1NqNV7CQPyGylfwhfqNer/BNOPRmIIXxqqkphyg8zSKfX2N1J
6hTWCo0VqvOjw87G6lgGvLLIJHitZbQHGc8Fh2lD5F/rDNx4SxD2ePUjoUV5Bne2
lq+TvaJJKquxH37RVNFLJFRxu418sN3Or1PasNxw8KchqWu+pJj8jUHMGF+bPQaz
7p8lmW+uerQ/6MtLylQd90xIQpPTe5OVXuugKaO+zAKXrSnelVsd7KNggZoa3kIu
WxBLCrAQZafsNskU59oZBbjWkQ9czf/u1h9w7NiAWFPP1mlzIcVe21s/s2ZhVTFc
CXK79HdUMwPro8Tp5ZexRqUPwBTRMR1jb7eBLEzDkwchE+M1kMyKWb6uNO8ULBNZ
EzAcLAouSy5o1+pIWYOmUnNfxaLA6RpHEh8mLNIB2r69WPMPWp+lXjaWiCurjSF4
ObrwGXl4r/RDS+t0ihwZod4G4feWiwgDWLTKpwhSaPMFwVjD9BE8m/wqRfvu4JXx
9/2gNI5L678gao0rMgBXFajedWNHfQdStW7K/KyT/AskVn6Pn5jvxIoNwn4DCvyb
N9kymWFRxhxCE77MDDUG
=veA8
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list