Navigating with arrow keys broken for RTL text

Bug #1966613 reported by Yotam Benshalom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pango
Fix Released
Unknown
pango1.0 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

RTL text renders fine, and navigating within a line with the arrow keys works as expected. However, using the left and right arrow keys to move to the next or previous lines is broken.

To reproduce:
1. Open gnome-text-editor and paste the following into its window:
זוהי השורה הראשונה
זוהי השורה השנייה
זוהי השורה השלישית
make sure it is aligned to the right, as it should.
2. place the caret in the middle of the 2nd line.
3. With the arrows, move the caret to the left of the line (its end).
4. Press the left arrow key one more time.
Expected results:
1. The caret moves to the right hand side of the next line.
Actual results:
1. The caret moves to the left hand side of the previous line.

The same issue exists in reverse: if you move the caret with the arrow keys to the right of the line (its beginning) and press the right arrow key one more time, it will move to the right hand side of the next line instead of the left hand side of the previous line, as it should.

This make navigation in RTL files highly uncomfortable.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-text-editor 42.0-2
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Mar 28 03:09:24 2022
InstallationDate: Installed on 2022-01-31 (55 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220126)
SourcePackage: gnome-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Yotam Benshalom (benshalom) wrote :
Revision history for this message
Yotam Benshalom (benshalom) wrote :
Jeremy Bícha (jbicha)
affects: gnome-text-editor (Ubuntu) → pango1.0 (Ubuntu)
Changed in pango1.0 (Ubuntu):
status: New → Triaged
affects: gnome-text-editor → pango
Changed in pango1.0 (Ubuntu):
status: Triaged → In Progress
importance: Undecided → High
Changed in pango1.0 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pango1.0 - 1.50.6+ds-2

---------------
pango1.0 (1.50.6+ds-2) unstable; urgency=medium

  * Cherry-pick patch to fix RTL navigation between lines (LP: #1966613)

 -- Jeremy Bicha <email address hidden> Fri, 01 Apr 2022 14:08:05 -0400

Changed in pango1.0 (Ubuntu):
status: Fix Committed → Fix Released
Changed in pango:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.