Bug 447225 - Cursor "jumps" one character to the right when inputting dead keys ' and " in US alt. intl. keyboard layout
Summary: Cursor "jumps" one character to the right when inputting dead keys ' and " in...
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.08.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-19 11:35 UTC by Sebastian
Modified: 2023-09-30 17:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.08
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.