Review Request 123376: Fix handling of mod-shift-number shortcuts.
Thomas Lübking
thomas.luebking at gmail.com
Fri May 1 07:51:13 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123376/#review79753
-----------------------------------------------------------
Two things.
a) "1" is a magic number (stupid xcb, should be xcppb ;-) - please add a comment that this picks the 1st level shift
b) the overall code looks a bit inefficient. No idea how smart xcb is under the hood, but
1. we fetch the keysym via xcb_key_press_lookup_keysym
2. we check the mod state to be numlock
3. we fetch the keysym again (xcb_key_press_lookup_keysym just wraps xcb_key_symbols_get_keysym on ev->detail)
4. we map keysymX to keysymQt
5. we check the (mapped to Qt) modifier for the SHIFT flag
6. this patch fetches and maps keysymX once more
.... do you want to do a general cleanup with this or another patch?
- Thomas Lübking
On April 25, 2015, 7:54 nachm., Yuxuan Shui wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123376/
> -----------------------------------------------------------
>
> (Updated April 25, 2015, 7:54 nachm.)
>
>
> Review request for KDE Frameworks, Martin Gräßlin and Thomas Lübking.
>
>
> Bugs: 341959
> https://bugs.kde.org/show_bug.cgi?id=341959
>
>
> Repository: kglobalaccel
>
>
> Description
> -------
>
> For details, see discussion in corresponding bug report.
>
>
> Diffs
> -----
>
> src/runtime/kglobalaccel_x11.cpp abee5bc
>
> Diff: https://git.reviewboard.kde.org/r/123376/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Yuxuan Shui
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150501/2d42fb3a/attachment.html>
More information about the Kde-frameworks-devel
mailing list