On Sun, Apr 10, 2016, at 12:23 AM, Thiago Macieira wrote:
> As I said, the failure is in khotkeys: it needs to send the events in such a 
> way that the application can't tell the difference. Obviously, Qt 5 did.

Ok, so it's definitely a khotkeys problem, in KDE, & nothing to do with Qt.

I'll move this over to the kde-devel list, so they can see your test detail and 
evidence it's their issue, not Qt.

Thanks!

--------------------

This issue started here

        Qt Keyboard Shortcuts broken in Qt 5.6 (since 4.8 at least). 
Reproducible test case included.
        http://lists.qt-project.org/pipermail/development/2016-April/025592.html

A Qt dev provided the detail that shows that it's a kde/kotkeys problem, not a 
Qt problem,

        "As you can see, Qt did receive "Shift+3" and "X", but the text lookup 
returned 
        the result for Ctrl+3 and Ctrl+X.

        As I said, the failure is in khotkeys: it needs to send the events in 
such a 
        way that the application can't tell the difference. Obviously, Qt 5 
did."

Here's the testcase from the OP:

Note that the shortcuts fail only when used in Qt-based applications. They work 
fine in NON-Qt apps (GTK, JAVE, etc).

In addition to the info in original post, fyi I'm using

        khotkeys5-5.6.2-67.1.x86_64

TESTCASE:
-------------------------------------
on:
        /usr/bin/systemsettings5 -v
                systemsettings 5.6.2

exec:
        /usr/bin/systemsettings5

open:
        Configure Desktop
                Workspace
                        Shortcuts
                                Custom Shortcuts
                                        Configure Input Actions settings

in:
        'Name' pane

right-click:
        New
                Global Shortcut
                        Send Keyboard Input

rename New action:
        TEST

select:
        TEST

in:
        'Trigger' Pane

click:
        Shortcut "None"

enter:
        Meta-Ctrl-Alt-L

click:
        Apply

in:
        'Action' Pane

enter:
        Shift+3:X

click:
        Apply

(1)
open:
        LibreOffice Writer v5.1.2.2.0 10m0(Build:2) document

press:
        Meta-Ctrl-Alt-L
        OUTPUT: "#X"

(2)
open:
        Eclipse Editor v4.6 (Build:I20160405-0800) document

press:
        Meta-Ctrl-Alt-L
        OUTPUT: "#X"

(3)
open:
        KDE Kate v15.12.3 document

press:
        Meta-Ctrl-Alt-L
        OUTPUT: (none); window flashes

(4)
open:
        QtCreator v3.6.0 (based on Qt 5.6.0) document

press:
        Meta-Ctrl-Alt-L
        OUTPUT: (none); window flashes
-------------------------------------

Jason

Reply via email to