Public bug reported:

When using Unity7 or Plasma a key event created by Ctrl+C is
  QKeyEvent(KeyPress, Key_C, ControlModifier, text="\u0003")

But Unity8+ qtubuntu send to the application
  QKeyEvent(KeyPress, Key_C, ControlModifier, text="c")

This is most likely because QMirClientInput::dispatchKeyEvent is using
xkb_keysym_to_utf8 to get the text of the event instead of using
xkb_state_key_get_utf8

This breaks for example Konsole that expects the correct text to be
sent.

** Affects: qtubuntu (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  When using Unity7 or Plasma a key event created by Ctrl+C is
-   QKeyEvent(KeyPress, Key_C, ControlModifier, text="\u0003")
+   QKeyEvent(KeyPress, Key_C, ControlModifier, text="\u0003")
  
  But Unity8+ qtubuntu send to the application
-   QKeyEvent(KeyPress, Key_C, ControlModifier, text="c")
+   QKeyEvent(KeyPress, Key_C, ControlModifier, text="c")
  
  This is most likely because QMirClientInput::dispatchKeyEvent is using
  xkb_keysym_to_utf8 to get the text of the event instead of using
  xkb_state_key_get_utf8
+ 
+ This breaks for example Konsole that expects the correct text to be
+ sent.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1664610

Title:
  qtubuntu sends wrong text as part of QKeyEvent

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtubuntu/+bug/1664610/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to