Review Request 123376: Fix handling of mod-shift-number shortcuts.

Yuxuan Shui yshuiv7 at gmail.com
Sat Aug 15 21:42:18 UTC 2015



> On May 1, 2015, 7:51 a.m., Thomas Lübking wrote:
> > 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?

Hi, sorry for the later reply. I've been really busy later.

I can do a code cleanup (will have some free time 2 weeks from now).  What do you want me to do.


- Yuxuan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123376/#review79753
-----------------------------------------------------------


On April 25, 2015, 7:54 p.m., 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 p.m.)
> 
> 
> 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/20150815/befac765/attachment.html>


More information about the Kde-frameworks-devel mailing list