[Libreoffice-bugs] [Bug 144412] New: Qt5 flips writing direction on Ctrl+Shift+p

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 9 15:14:08 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144412

            Bug ID: 144412
           Summary: Qt5 flips writing direction on Ctrl+Shift+p
           Product: LibreOffice
           Version: 7.2.0.0 alpha1+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: graphics stack
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: glogow at fbihome.de

This is an other regression from bug 143298.

1. Open Writer
2. Press Ctrl+Shift+P (superscript)

Result: Writer input changes to superscript and the paragraph to RTL?!

Expected result: no change of writing direction

-----

SAL_DEBUG("SalEvent::KeyModChange " << aModEvt.mnCode << " " << (int)
aModEvt.mnModKeyCode);
SAL_DEBUG("SalEvent::KeyInput " << aEvent.mnCode << " " << aEvent.mnCharCode);

Adding this debug output reveals for gtk3:

debug:397428:397428: SalEvent::KeyModChange 8192 8
debug:397428:397428: SalEvent::KeyModChange 12288 10
debug:397428:397428: SalEvent::KeyInput 12815 80
debug:397428:397428: SalEvent::KeyUp 12815 80
debug:397428:397428: SalEvent::KeyModChange 8192 0
debug:397428:397428: SalEvent::KeyModChange 0 0

80 = 'P'

For gen:

debug:402712:402712: SalEvent::KeyModChange 8192 0
debug:402712:402712: SalEvent::KeyModChange 12288 0
debug:402712:402712: SalEvent::KeyInput 12815 80
debug:402712:402712: SalEvent::KeyUp 12815 80
debug:402712:402712: SalEvent::KeyModChange 8192 0
debug:402712:402712: SalEvent::KeyModChange 0 0

For kf5:

debug:383771:383771: SalEvent::KeyModChange 8192 8
debug:383771:383771: SalEvent::KeyModChange 12288 10
debug:383771:383771: SalEvent::KeyInput 12815 16
debug:383771:383771: SalEvent::KeyUp 12815 16
debug:383771:383771: SalEvent::KeyModChange 8192 10
debug:383771:383771: SalEvent::KeyModChange 0 8

I have no idea, why pEvent->text().at(0).unicode() returns 16. text().length ==
1, so nothing else missing. But that seems to not cause any problem.

Obviously the reported mnModKeyCode on release is wrong (should be 8 and 0) and
fixing that fixes the bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210909/4896c457/attachment.htm>


More information about the Libreoffice-bugs mailing list