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

Jan-Marek Glogowski <glo...@fbihome.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #2 from Jan-Marek Glogowski <glo...@fbihome.de> ---
ِAFAIK this is a Qt bug, but with input method handling, I'm not 100% sure...

Originally I thought it was some problem in the key handling - we had a bunch
of bugs with "Old Hungarian" input, but it turns out Qt sends (wrongly?) an
inputMethodEvent for the Ctrl+b, instead of a key event.

Layout: ara
Ctrl
debug:23031:23031: QEvent::ShortcutOverride
debug:23031:23031: st press co 0 len 0
Ctrl+b
debug:23031:23031: inputMethodEvent 1 0
debug:23031:23031: st release co 513 len 1
debug:23031:23031: st release co 0 len 0

Layout: de
Ctrl
debug:23031:23031: QEvent::ShortcutOverride
debug:23031:23031: st press co 0 len 0
Ctrl+b
debug:23031:23031: QEvent::ShortcutOverride
debug:23031:23031: st press co 513 len 1
debug:23031:23031: st release co 513 len 1
debug:23031:23031: st release co 0 len 0

As you can see, there is not even a a key press event for Ctrl+b, but instead
you get a "commit string" of length 1 for "inputMethodEvent", which LO does
comply with by inserting the "ل", the same character when just pressing "b".

I get the same behavior in kate, where Ctrl+b normally adds a bookmark with
"de" layout and English UI, but inserts a "ل" with "ara" layout instead. Also
note, that gtk3 inserts a "ﻻ", if I press b. And I noticed a message in my
".xsession-errors", if I switch to the "ara" layout: qt.qpa.xkeyboard: no
keyboard layouts with latin keys present

I also tested the minimal Qt text editor
/usr/lib/x86_64-linux-gnu/qt5/examples/widgets/richtext/textedit/textedit in
WindowMaker, where I switched the layout between "de" and "ara" using
"setxkbmap -layout". Same behavior the LO. This really looks like a Qt bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to