Bug 447225

Summary: Cursor "jumps" one character to the right when inputting dead keys ' and " in US alt. intl. keyboard layout
Product: [Applications] kate Reporter: Sebastian <kdebugs>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: christoph, kdebugs
Priority: NOR    
Version First Reported In: 21.08.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 23.08
Sentry Crash Report:

Description Sebastian 2021-12-19 11:35:25 UTC
SUMMARY
*** 
I have used the editor kate for about 20 years now. After a recent update, I experience a strange behaviour. When I want to input quotation marks, the cursor "jumps" one character to the right, putting the quotation mark *after* the character, where it should be before

Suppose I want to add quotation marks around "hello" as shown below. At first, I get ¨, which indicates that a composing character has been input, which is waiting for another keypress to decide whether it should become ä, ö, ü or, in this case ". This character ¨ appears where it should appear. As soon as I press <SPACE>, however, it jumps one character to the right. 

`s = hello`
`s = ¨hello`
`s = h"ello`

The same is true for the ' combining character. If I want to correct "Cdiz" to "Cádiz", I get the following
`s = hello`
`s = ´hello`
`s = h'ello`
 
The issue does not occur with ^ or `.

The issue occurs with other Qt-programs (kile, open-scad). It does not occur with non-Qt-programs.

Input via other keyboard layouts (german) is fine.
***


STEPS TO REPRODUCE
1. Set keyboard to "US alt. intl."
2. Input 123456
3. Position cursor between 3 and 4
4. Type "
5. Type " again. 


OBSERVED RESULT
1234"56

EXPECTED RESULT
123"456

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma:  
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version:   5.86.0
Qt Version:  5.15.2 

ADDITIONAL INFORMATION

 xcb windowing system
Comment 1 Sebastian 2021-12-19 11:38:34 UTC
PS: sorry about the misleading  mentioning of Cádiz. Next to plain input of ' and ", the issue arises as well when inputting letters with diacritics, eg "á" in Cádiz.
Comment 2 Christoph Cullmann 2023-09-30 17:32:37 UTC
Works for me as intended with 23.08.